-
Notifications
You must be signed in to change notification settings - Fork 32
/
xF_DiDi_fruit.py
1726 lines (1551 loc) · 91.9 KB
/
xF_DiDi_fruit.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/env python3
# -*- coding: utf-8 -*
'''
感谢CurtinLV提供的其他脚本供我参考
感谢aburd ch大佬的指导抓包
项目名称:xF_DiDi_fruit.py
Author: 一风一燕
功能:滴滴app水果自动任务
Date: 2021-11-23
cron: 43 0-3,8,9,12,15,18,22 * * * xF_DiDi_fruit.py
new Env('滴滴app水果自动任务');
****************滴滴出行APP*******************
【教程】:方法一:
需要自行用手机抓取Didi_jifen_token。
Didi_jifen_token如何抓,请看didi_Sign说明
方法二:
手机抓包后,自己浇水一次,查看URL路径,https://game.xiaojukeji.com/api/game/plant/watering?wsgsig=xxxx
然后查看headers,D-Header-T对应的数值,就是token
在青龙变量中添加变量Didi_jifen_token
多个账号时,Didi_jifen_token,用&隔开,例如Didi_jifen_token=xxxxx&xxxx
cron时间填写:43 0-3,8,12,15,18,22 * * *
'''
Didi_jifen_token = ''
'''
=================================以下代码不懂不要随便乱动=================================
'''
tokens = ''
account = 1
id = ''
try:
import requests
import json, sys, os, re
import time, datetime,random
except Exception as e:
print (e)
requests.packages.urllib3.disable_warnings ()
pwd = os.path.dirname (os.path.abspath (__file__)) + os.sep
path = pwd + "env.sh"
nowtime = datetime.datetime.now ().strftime ('%Y-%m-%d %H:%M:%S.%f8')
today = datetime.datetime.now ().strftime ('%Y-%m-%d')
time1 = '08:00:00.00000000'
time2 = '12:00:00.00000000'
time3 = '15:00:00.00000000'
time4 = '17:00:00.00000000'
get_time1 = '{} {}'.format (today, time1)
get_time2 = '{} {}'.format (today, time2)
get_time3 = '{} {}'.format (today, time3)
get_time4 = '{} {}'.format (today, time4)
wsgsig=['dd03-vx9tq2onDp0IZqcYVoABxTjsa%2BXNwlstUQ6fOSmVa%2BX%2BZhfRmNkDw6zkAz0%2BZA8rsJ2%2BzMKjCoJLpecxVoEAOMK%2FBzf2SAJmXo6ax6Nre%2BnNYVNkX72aP6KjAJE',
'dd03-67TGcdCHNXqCW0FVDMhX%2B%2F%2B650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Q3gSx7ilv8cT60pXuNdSwchtoc%2BPINqUJcETYN%2Fr7DdOSbqU3JgTO%2BqrRJEQP%2B%2FV%2BbfSTd',
'dd03-RnANOxOD1Z3H9sJdnUHQlIrfJ2u%2Ben09kqMvqH%2FaJ2uN9jj1WEUokZZA4P3N9CubiAIsnPrD4OgMGgmNmd5plZPCN2NIF0zGlUBwqLxCNPNHaitCnE6xlZqa2ZA'
]
uid = ''.join(random.sample('01234567890123456789', 15))
def printT(s):
print ("[【{0}】]: {1}".format (datetime.datetime.now ().strftime ("%Y-%m-%d %H:%M:%S"), s))
sys.stdout.flush ()
def getEnvs(label):
try:
if label == 'True' or label == 'yes' or label == 'true' or label == 'Yes':
return True
elif label == 'False' or label == 'no' or label == 'false' or label == 'No':
return False
except:
pass
try:
if '.' in label:
return float (label)
elif '&' in label:
return label.split ('&')
elif '@' in label:
return label.split ('@')
else:
return int (label)
except:
return label
############## 在pycharm测试ql环境用,实际用下面的代码运行 #########
# with open(path, "r+", encoding="utf-8") as f:
# ck = f.read()
# tokens = ck
# if "Didi_jifen_token" in ck:
# r = re.compile (r'Didi_jifen_token="(.*?)"', re.M | re.S | re.I)
# tokens = r.findall(ck)
# tokens = tokens[0].split ('&')
# if len (tokens) == 1:
# Didi_jifen_token = tokens[0]
# tokens = ''
# # print(tokens)
# # tokens = cookies[3]
# else:
# pass
# printT ("已获取并使用ck环境 token")
########################################################################
if "Didi_jifen_token" in os.environ:
print (len (os.environ["Didi_jifen_token"]))
if len (os.environ["Didi_jifen_token"]) > 319:
tokens = os.environ["Didi_jifen_token"]
# tokens = tokens.split ('&')
# cookies = temporary[0]
printT ("已获取并使用Env环境Didi_jifen_token")
else:
Didi_jifen_token = os.environ["Didi_jifen_token"]
else:
print ("检查变量Didi_jifen_token是否已填写")
## 获取通知服务
class msg (object):
def __init__(self, m=''):
self.str_msg = m
self.message ()
def message(self):
global msg_info
printT (self.str_msg)
try:
msg_info = "{}\n{}".format (msg_info, self.str_msg)
except:
msg_info = "{}".format (self.str_msg)
sys.stdout.flush () # 这代码的作用就是刷新缓冲区。
# 当我们打印一些字符时,并不是调用print函数后就立即打印的。一般会先将字符送到缓冲区,然后再打印。
# 这就存在一个问题,如果你想等时间间隔的打印一些字符,但由于缓冲区没满,不会打印。就需要采取一些手段。如每次打印后强行刷新缓冲区。
def getsendNotify(self, a=0):
if a == 0:
a += 1
try:
url = 'https://gitee.com/curtinlv/Public/raw/master/sendNotify.py'
response = requests.get (url)
if 'curtinlv' in response.text:
with open ('sendNotify.py', "w+", encoding="utf-8") as f:
f.write (response.text)
else:
if a < 5:
a += 1
return self.getsendNotify (a)
else:
pass
except:
if a < 5:
a += 1
return self.getsendNotify (a)
else:
pass
def main(self):
global send
cur_path = os.path.abspath (os.path.dirname (__file__))
sys.path.append (cur_path)
if os.path.exists (cur_path + "/sendNotify.py"):
try:
from sendNotify import send
except:
self.getsendNotify ()
try:
from sendNotify import send
except:
printT ("加载通知服务失败~")
else:
self.getsendNotify ()
try:
from sendNotify import send
except:
printT ("加载通知服务失败~")
###################
msg ().main ()
nowtime = int (round (time.time () * 1000))
if tokens != '':
# if "Didi_jifen_token" in tokens:
# r = re.compile (r'Didi_jifen_token="(.*?)"', re.M | re.S | re.I)
# tokens = r.findall (ck)
tokens = tokens.split ('&')
# print(tokens)
if len (tokens) == 1:
Didi_jifen_token = tokens[0]
else:
pass
# 获取xpsid
def get_xpsid():
try:
url = f'https://v.didi.cn/p/DpzAd35?appid=10000&lang=zh-CN&clientType=1&trip_cityid=21&datatype=101&imei=99d8f16bacaef4eef6c151bcdfa095f0&channel=102&appversion=6.2.4&trip_country=CN&TripCountry=CN&lng=113.812538&maptype=soso&os=iOS&utc_offset=480&access_key_id=1&deviceid=99d8f16bacaef4eef6c151bcdfa095f0&phone=UCvMSok42+5+tfafkxMn+A==&model=iPhone11&lat=23.016271&origin_id=1&client_type=1&terminal_id=1&sig=8503d986c0349e40ea10ff360f75d208c78c989a'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
}
response = requests.head (url=url, headers=headers, verify=False) # 获取响应请求头
res = response.headers['Location'] # 获取响应请求头
# print(res)
r = re.compile (r'root_xpsid=(.*?)&channel_id')
xpsid = r.findall (res)
xpsid = xpsid[0]
print (xpsid)
return xpsid
except Exception as e:
print (e)
msg ("获取xpsid失败,可能是表达式错误")
# 获取小动物id
def get_pet_id(Didi_jifen_token, xpsid,wsgsig):
try:
url = f'https://game.xiaojukeji.com/api/game/plant/enter?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = '{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","assist_type":0,"encode_uid":"","is_old_player":true,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
# print(result)
pet_id = result['data']['lam_uid']
return pet_id
except Exception as e:
print (e)
msg ("获取pet_id失败,可能是token过期")
# 获取任务列表
def get_missons(Didi_jifen_token, xpsid,wsgsig):
missons_list = []
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/get?xbiz=240301&prod_key=didi-orchard&xpsid={xpsid}&dchn=O9aM923&xoid=aA%2Fiet7vTTmdKCRAgoHwyg&uid=' + f'{uid}' + f'&xenv=passenger&xspm_from=&xpsid_root={xpsid}&xpsid_from=&xpsid_share=&game_id=23&loop=0&platform=1&token={Didi_jifen_token}&wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Accept": "application/json, text/plain, */*",
}
response = requests.get (url=url, headers=headers, verify=False)
result = response.json ()
# print(result)
missons = result['data']['missions']
# print(missons)
for i in range (len (missons)):
title = missons[i]['title']
missons_list.append (title)
return missons_list
except Exception as e:
print (e)
msg ("获取missoins_list失败,可能是token过期")
# 签到
def do_sign(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/plant/sign?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if "今天已经签过到" in errmsg:
msg ("【账号{}】今天已经签到,跳出执行签到环节".format (account))
if errmsg == 'success':
name = result['data']['rewards'][0]['name']
num = result['data']['rewards'][0]['num']
sign_times = result['data']['sign_times']
msg ("【账号{3}】今天签到成功,获取{0}{1},已连续签到{2}天".format (name, num, sign_times, account))
except Exception as e:
print (e)
msg ("【账号{0}】执行签到失败,可能是token过期".format (account))
# 领取宝箱
def get_treasure(Didi_jifen_token, xpsid, account,wsgsig):
try:
for i in range (100):
id = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/plant/recCommonBox?wsgsig={id}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","is_fast":false,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
# print (result)
errmsg = result['errmsg']
if errmsg == 'success':
name = result['data']['rewards'][0]['name']
num = result['data']['rewards'][0]['num']
i += 1
msg ("【账号{2}】成功领取第{3}个宝箱奖励,获得{0}{1}".format (name, num, account, i))
time.sleep (1)
else:
break
except Exception as e:
print (e)
msg ("【账号{0}】领取宝箱失败,可能是token过期".format (account))
# 领取任务(固定入口进入游戏)
def get_misson1(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":255,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】固定入口进入游戏任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【固定入口进入游戏】任务失败,可能是token过期".format (account))
# 领取任务(【浏览晒单区】任务)
def get_misson2(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":32,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【浏览晒单区】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浏览晒单区】任务失败,可能是token过期".format (account))
# 领取任务(访问公交车页面任务)
def get_misson3(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":256,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【访问公交车页面任务】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【访问公交车页面任务】任务失败,可能是token过期".format (account))
# 领取任务(成长会员主页)
def get_misson4(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":258,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【访问公交车页面任务】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【访问公交车页面任务】任务失败,可能是token过期".format (account))
# 领取任务(积分商城)
def get_misson5(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":257,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【访问公交车页面任务】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【访问公交车页面任务】任务失败,可能是token过期".format (account))
# 领取任务(学会技能)
def get_misson6(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":31,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【学会技能】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【学会技能】任务失败,可能是token过期".format (account))
# 领取任务(果园入口)
def get_misson7(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":29,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【果园入口】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【果园入口】任务失败,可能是token过期".format (account))
# 领取任务(浇水100g)
def get_misson8(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":250,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
elif "任务未达到领奖条件" in errmsg:
msg("【账号{}】【浇水100g】未达到领奖条件".format(account))
else:
msg ("【账号{}】【浇水100g】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浇水100g】任务失败,可能是token过期".format (account))
# 领取任务(肥料200g)
def get_misson9(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":100,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}袋".format (title, name, count, account))
elif "任务未达到领奖条件" in errmsg:
msg("【账号{}】【浇水200g】未达到领奖条件".format(account))
else:
msg ("【账号{}】【浇水200g】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浇水200g】任务失败,可能是token过期".format (account))
# 领取任务(肥料500g)
def get_misson10(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":101,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}袋".format (title, name, count, account))
elif "任务未达到领奖条件" in errmsg:
msg("【账号{}】【浇水500g】未达到领奖条件".format(account))
else:
msg ("【账号{}】【浇水500g】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浇水500g】任务失败,可能是token过期".format (account))
# 领取任务(去除蚂蚱)
def get_misson11(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":15,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【去除蚂蚱】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【去除蚂蚱】任务失败,可能是token过期".format (account))
# 领取7点41分后的水滴
def get_misson12(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/plant/recExtWater?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
rec_water = result['data']['rec_water']
msg ("【账号{1}】成功领取每日水滴,获取{0}g水滴".format (rec_water, account))
else:
msg ("【账号{}】【每日水滴】早已领取,跳过领取环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】领取【每日水滴】失败,可能是token过期".format (account))
# 领取集水
def get_misson13(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/plant/recBucketWater?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
rec_water = result['data']['rec_water']
msg ("【账号{1}】成功领取集水滴,获取{0}g水滴".format (rec_water, account))
else:
msg ("【账号{}】水滴不足1g,跳过领取集水滴环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】领集水滴失败,可能是token过期".format (account))
# 领取肥料
def get_misson14(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/plant/receivePer?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
except Exception as e:
print (e)
msg ("【账号{0}】领取肥料失败,可能是token过期".format (account))
# 领取饭点水滴8-10,12-14,15-17
def get_misson15(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
nowtime = datetime.datetime.now ().strftime ('%Y-%m-%d %H:%M:%S.%f8')
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://fine.didialift.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://fine.didialift.com",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
if nowtime > get_time1 and nowtime < get_time2:
fdsd_id = 251
elif nowtime > get_time2 and nowtime < get_time3:
fdsd_id = 252
elif nowtime > get_time3 and nowtime < get_time4:
fdsd_id = 253
else:
return 0
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":' + f"{fdsd_id}" + r',"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】领取{0},获得{1}{2}g".format (title, name, count, account))
else:
msg ("【账号{}】未到时间领取【饭点水滴】,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】领取饭点水滴失败,可能是token过期".format (account))
# 领取任务(浏览滴水贷首页6秒)
def get_misson16(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://act.xiaojukeji.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://act.xiaojukeji.com/",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":42,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【浏览滴水贷首页6秒】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浏览滴水贷首页6秒】任务失败,可能是token过期".format (account))
# 领取任务(浏览果园商城15秒)
def get_misson17(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://act.xiaojukeji.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://act.xiaojukeji.com/",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":46,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【浏览果园商城15秒】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浏览果园商城15秒】任务失败,可能是token过期".format (account))
# 领取任务(浏览充值中心)
def get_misson18(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://act.xiaojukeji.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://act.xiaojukeji.com/",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
"D-Header-T": f"{Didi_jifen_token}",
"Content-Type": "application/json",
}
data = r'{"xbiz":"240301","prod_key":"didi-orchard","xpsid":"' + f'{xpsid}' + r'","dchn":"O9aM923","xoid":"aA/iet7vTTmdKCRAgoHwyg","uid":"' + f'{uid}' + r'","xenv":"passenger","xspm_from":"","xpsid_root":"' + f'{xpsid}' + r'","xpsid_from":"","xpsid_share":"","mission_id":41,"game_id":23,"platform":1,"token":"' + f'{Didi_jifen_token}' + r'"}'
# print(data)
response = requests.post (url=url, headers=headers, verify=False, data=data)
result = response.json ()
print (result)
errmsg = result['errmsg']
if errmsg == 'success':
title = result['data']['title']
name = result['data']['reward'][0]['name']
count = result['data']['reward'][0]['count']
msg ("【账号{3}】完成{0}任务,获取{1}{2}g水滴".format (title, name, count, account))
else:
msg ("【账号{}】【浏览充值中心】任务早已完成,跳过执行环节".format (account))
except Exception as e:
print (e)
msg ("【账号{0}】【浏览充值中心】任务失败,可能是token过期".format (account))
# 领取任务(访问消消赚)
def get_misson19(Didi_jifen_token, xpsid, account,wsgsig):
try:
wsgsig = wsgsig[random.randint (0,25)]
url = f'https://game.xiaojukeji.com/api/game/mission/award?wsgsig={wsgsig}'
headers = {
"user-agent": f"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 didi.passenger/6.2.4 FusionKit/1.2.20 OffMode/0",
"Referer": "https://act.xiaojukeji.com/",
"Host": "game.xiaojukeji.com",
"Origin": "https://act.xiaojukeji.com/",