Browse Source

王者营地

pull/15/head
张洛 3 years ago
parent
commit
5825ba65a7
  1. 2
      README.md
  2. 5
      wzyd.py

2
README.md

@ -18,7 +18,7 @@
### 1拉取仓库 ### 1拉取仓库
ql repo https://github.com/yuxian158/check.git '' 'checksendNotify' ql repo https://github.com/yuxian158/check.git '' '^checksendNotify'
### 2参数列表 ### 2参数列表

5
wzyd.py

@ -24,7 +24,7 @@ class WZYDCheckIn:
return msg return msg
def main(self): def main(self):
wzyd_data = self.check_item[0] wzyd_data = self.check_item
data = {k: v[0] for k, v in parse.parse_qs(wzyd_data).items()} data = {k: v[0] for k, v in parse.parse_qs(wzyd_data).items()}
try: try:
user_id = data.get("userId", "") user_id = data.get("userId", "")
@ -37,8 +37,9 @@ class WZYDCheckIn:
if __name__ == "__main__": if __name__ == "__main__":
if 'wzry' in os.environ: if 'wzyd' in os.environ:
print('王者营地签到开始') print('王者营地签到开始')
text = WZYDCheckIn(check_item=os.environ).main() text = WZYDCheckIn(check_item=os.environ).main()
localtime = time.asctime(time.localtime(time.time())) localtime = time.asctime(time.localtime(time.time()))
send(f'当前时间{localtime}\n结果:{text}') send(f'当前时间{localtime}\n结果:{text}')
else:print('未找到变量请填入')
Loading…
Cancel
Save