🐛 设置哔咔漫画超时时间

🐛 修复任务错误不通知的 BUG
📝 修改进群方式
This commit is contained in:
shitao 2021-03-08 19:12:28 +08:00
parent 70daa13b6c
commit e1f317a597
3 changed files with 8 additions and 2 deletions

View File

@ -83,7 +83,8 @@
## 交流群
<p align="center">
<img width="282" height="365.25" src="https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/wechat_group.jpg" alt="微信交流群"/>
<img width="282" height="282" src="https://sitoi.cn/wechat.jpg" alt="进群加微信,备注签到"/>
<br>进群加微信,备注: 签到
</p>
## 历史 Star 数

View File

@ -41,6 +41,7 @@ def main_handler(event, context):
msg = check_func(check_item).main()
content_list.append(f"{check_name}\n{msg}")
except Exception as e:
content_list.append(f"{check_name}\n{e}")
print(check_name, e)
else:
print(f"检测【{check_name}】脚本到配置文件包含模板配置,进行跳过")
@ -56,6 +57,7 @@ def main_handler(event, context):
msg = check_func(check_item).main()
content_list.append(f"{check_name}\n{msg}")
except Exception as e:
content_list.append(f"{check_name}\n{e}")
print(check_name, e)
else:
print(f"检测【{check_name}】脚本到配置文件包含模板配置,进行跳过")

View File

@ -53,10 +53,13 @@ class PicacomicCheckIn:
url="https://picaapi.picacomic.com/auth/sign-in",
data=json.dumps({"email": "sitoi", "password": "123456st"}),
headers=sign_headers,
timeout=60,
).json()
token = sign_response.get("data", {}).get("token")
punch_headers = self.generate_headers(path="users/punch-in", token=token)
response = requests.post(url="https://picaapi.picacomic.com/users/punch-in", headers=punch_headers).json()
response = requests.post(
url="https://picaapi.picacomic.com/users/punch-in", headers=punch_headers, timeout=60
).json()
if response.get("data", {}).get("res", {}).get("status", {}) == "ok":
msg = "打卡成功"
else: