Update dxdh.py

This commit is contained in:
cc892786825
2024-11-27 22:36:48 +08:00
committed by GitHub
parent 45a97e139a
commit de3e56470c

View File

@@ -223,7 +223,7 @@ def get_ticket(phone,userId,token):
async def exchange(s, phone, title, aid,jsexec, ckvalue):
try:
url="https://wapact.189.cn:9001/gateway/standExchange/detailNew/exchange"
url="https://wapact.189.cn:9001/gateway/stand/detailNew/exchange"
# getck = await asyncio.to_thread(jsexec.call, "getck") # 两种方式一种用ck一种用后缀
# getck = getck.split(';')[0].split('=')
# ckvalue[getck[0]] = getck[1]
@@ -242,7 +242,7 @@ async def exchange(s, phone, title, aid,jsexec, ckvalue):
async def check(s,item,ckvalue):
checkGoods = s.get('https://wapact.189.cn:9001/gateway/standQuery/detailNew/check?activityId={item}&_={int(time.time())}, cookies=ckvalue).json()
checkGoods = s.get('https://wapact.189.cn:9001/gateway/stand/detailNew/check?activityId=' + item, cookies=ckvalue).json()
return checkGoods
async def conversionRights(phone, aid,session):
@@ -448,4 +448,3 @@ if __name__ == "__main__":
asyncio.run(main(timeDiff, isTRUE,h))
print("所有任务都已执行完毕!")