Update zgfc.py

pull/22/head
wd210010 9 months ago committed by GitHub
parent 4f618b7ace
commit d6ee7c42ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      zgfc.py

@ -6,7 +6,7 @@
# -------------------------------
# cron "0 0 8 * * *" script-path=xxx.py,tag=匹配cron用
# const $ = new Env('福彩抽奖')
import requests,json,os
import requests,json,os,time
#活动路径 中国福彩公众号 右下角新年活动
#手机号登录后 抓取https://ssqcx-serv.cwlo.com.cn域名下的请求头的Authorization 放入青龙变量或者放入config.sh 变量名为zgfcau 放在config.sh的话 多账号用&分割 放在青龙变量就多建几个变量
@ -45,6 +45,7 @@ for i in range(len(zgfcaulist)):
print('该Authorization可能无效!')
print('**开始抽奖**')
try:
for i in range(3):
resp2 = requests.post('https://ssqcx-serv.cwlo.com.cn/api/lottery/start', headers=headers)
result2 = json.loads(resp2.text)
# print(result2)
@ -57,6 +58,7 @@ for i in range(len(zgfcaulist)):
print('未中奖')
else:
print(success)
time.sleep(3)
except:
print('该Authorization可能无效!')
print(wishidlist)

Loading…
Cancel
Save