下载域名权限问题

publicsignpoll
youngS 3 years ago
parent 9b69021337
commit edd603b8e9
  1. 2
      fir_ser/api/utils/baseutils.py
  2. 6
      fir_ser/cli.py

@ -246,6 +246,8 @@ def check_app_domain_name_access(app_obj, access_domain_name, user_obj, extra_do
if app_domain_name: domain_list.append(app_domain_name)
user_domain_name = get_user_domain_name(user_obj)
if user_domain_name: domain_list.append(user_domain_name)
user_qr_domain_name = get_user_domain_name(user_obj, 0)
if user_qr_domain_name: domain_list.append(user_qr_domain_name)
if access_domain_name in domain_list:
return True

@ -11,7 +11,6 @@ import random
import re
import json
import zipfile
import requests
'''
pip install --upgrade pip
@ -87,6 +86,7 @@ def upload_qiniuyunoss(key, token, file_path):
class FLYCliSer(object):
import requests
def __init__(self, fly_cli_domain, fly_cli_token):
self.fly_cli_domain = fly_cli_domain
@ -332,7 +332,7 @@ class AppInfo(object):
def check_depends():
cmd_list = ['--upgrade pip', 'setuptools-rust', 'oss2', 'requests-toolbelt', 'androguard', 'qiniu']
cmd_list = ['--upgrade pip', 'setuptools-rust', 'oss2', 'requests-toolbelt', 'androguard', 'qiniu','requests']
for cmd in cmd_list:
os.system('pip install %s' % cmd)
@ -381,7 +381,7 @@ if __name__ == '__main__':
file_path_list = []
if args.filepath is not None and len(args.filepath) > 0:
for args_filepath in args.filepath:
file_path_list.extend(os.path.join(base_dir, args_filepath))
file_path_list.append(os.path.join(base_dir, args_filepath))
if args.dir_path is not None and len(args.dir_path) > 0:
for args_dir_path in args.dir_path:
dir_path = os.path.join(base_dir, args_dir_path)

Loading…
Cancel
Save