rhming / UnicomDailyTask

联通日常任务 腾讯云函数定时执行
MIT License
152 stars 77 forks source link

无推送,问下怎么回事 #8

Closed zhouyang2021 closed 3 years ago

zhouyang2021 commented 3 years ago

填了推送。配置了数据接口,里面没数据,华为云函数

rhming commented 3 years ago

搭建的数据存储服务管理后台没有数据吗 推送日志每天都是在固定时间段

zhouyang2021 commented 3 years ago

没数据,测试几次成功,后台没数据也没推送

rhming commented 3 years ago

把index.py里面的DEBUG = False改为DEBUG = True在测试一遍(执行之间比较长),测试完再改回去,看看后台有没有数据 image

zhouyang2021 commented 3 years ago

有数据,函数执行失败 函数返回:

{ "errorMessage": "[WoRead]\u767b\u5f55\u5931\u8d25,\u7ed3\u675f\u6267\u884c\u4efb\u52a1", "errorType": "Exception", "stackTrace": [ "File \"./index.py\", line 82, in main_handler", " Template(LuckDraw)", "File \"./index.py\", line 31, in Template", " ts.append(Thread(target=cls(mobile, password).run))", "File \"./activity/woread/luckdraw.py\", line 9, in init", " super(LuckDraw, self).init(mobile)", "File \"./activity/woread/woread.py\", line 30, in init", " self.login()", "File \"./activity/woread/woread.py\", line 80, in login", " raise Exception('[WoRead]\u767b\u5f55\u5931\u8d25,\u7ed3\u675f\u6267\u884c\u4efb\u52a1')" ] }

rhming commented 3 years ago

这提示沃阅读登录失败,在尝试一次看看(可能) 应该还有其他数据输出,截个图看看

rhming commented 3 years ago

这提示沃阅读登录失败,在尝试一次看看(可能) 应该还有其他数据输出,截个图看看 登录接口也正常,没失效 image

zhouyang2021 commented 3 years ago

IMG_20211003_220423.jpg

rhming commented 3 years ago

沃阅读账号没注册 m.iread.wo.cn 使用账号登录,去注册一下 号码长度不对吧,图片里是12位

zhouyang2021 commented 3 years ago

谢谢。任务正常,数据有了。还是没推送 IMG_20211003_222130.jpg

rhming commented 3 years ago

联通appid没配置好,相关配置文件都要配置好(号码要对应,不能有错误) image