云函数单用户推送修复

This commit is contained in:
Womsxd 2022-02-04 10:57:26 +08:00
parent a70800de7d
commit d5503e10e3
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -6,10 +6,10 @@ from error import CookieError
def main_handler(event: dict, context: dict):
try:
status_code = main.main()
status_code, push_message = main.main()
except CookieError:
status_code = 0
push.push(status_code, "脚本已执行")
push.push(status_code, push_message)
print("云函数测试支持!")
return 0