游戏日报触发脚本
This commit is contained in:
parent
11e68a1ea2
commit
53f30e137c
@ -27,9 +27,13 @@ app.config['MAIL_PASSWORD'] = 'bX8cfBAyj9MBqH22'
|
||||
|
||||
mail = Mail(app)
|
||||
|
||||
recipients = ["pengtao@kingsome.cn"]
|
||||
recipients_mini = ["pengtao@kingsome.cn", "tangwenjing@kingsome.cn"]
|
||||
# recipients_mini = ["pengtao@kingsome.cn","liulizhen@kingsome.cn","tangwenjing@kingsome.cn","fanyi@kingsome.cn","yuexin@kingsome.cn","yuetao@kingsome.cn"]
|
||||
recipients_2001 = ["pengtao@kingsome.cn", "chenliang@kingsome.cn"]
|
||||
|
||||
|
||||
# recipients_2001 = ["pengtao@kingsome.cn","chenliang@kingsome.cn","yuexin@kingsome.cn","yuetao@kingsome.cn"]
|
||||
|
||||
# FROMAPPID_CN = {"wxdb103a128e118619": "拯救熊猫泡泡", "wxc137c93eedeab6f2": "爆冰达人"}
|
||||
|
||||
|
||||
@ -61,13 +65,16 @@ def send_async_email(app, msg):
|
||||
@app.route('/send-dailyreport')
|
||||
def send_dailyreport():
|
||||
title = "OPS报表"
|
||||
msg = Message(title, sender=sender, recipients=recipients)
|
||||
|
||||
|
||||
day = request.args.get('day')
|
||||
project = request.args.get('project') or 'mini_games'
|
||||
if not (project and day):
|
||||
return jsonify("PLS input arfs")
|
||||
if str(project) == '2001':
|
||||
recipients = recipients_2001
|
||||
else:
|
||||
recipients = recipients_mini
|
||||
|
||||
msg = Message(title, sender=sender, recipients=recipients)
|
||||
rp = Report(day, project)
|
||||
data = rp.run()
|
||||
print(data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user