调整yml

This commit is contained in:
RainSun 2020-12-26 20:15:12 +08:00
parent 059fc5a82d
commit 58effcea46
2 changed files with 3 additions and 1 deletions

View File

@ -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"]

View File

@ -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'])