调整yml
This commit is contained in:
parent
059fc5a82d
commit
58effcea46
@ -3,4 +3,4 @@ COPY requirements.txt /app/requirements.txt
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
COPY . /app
|
||||
CMD ["gunicorn", "api:app", "-c", "./gunicorn.conf.py"]
|
||||
CMD ["python"]
|
@ -9,6 +9,8 @@ def requestsAccessToken():
|
||||
res = requests.get(url=url)
|
||||
json_response = res.content.decode()
|
||||
dict_json = json.loads(json_response)
|
||||
if not dict_json.get('access_token'):
|
||||
return
|
||||
set_res = setAccessToken(dict_json['access_token'])
|
||||
# if set_res['errcode'] != 200:
|
||||
# sendMail('警告!', str(set_res), ['1144131090@qq.com','160594753@qq.com'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user