-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewSeizor.py
65 lines (61 loc) · 4.85 KB
/
NewSeizor.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
# -*- coding = utf-8 -*-
# @TIME :2022/2/25 19:18
# @Author :CrescentLove
# @Software :PyCharm
import datetime
from CrescentRes.login import loGin
from CrescentRes.seizor import venSeizor
class Auto():
def __init__(self, slow, noam, noeat, notod, dlist, sport, venue, timeI, field, lcoo, bcoo, usag):
self.usag = usag
self.bcoo = bcoo
self.lcoo = lcoo
self.field = field
self.timeI = timeI
self.venue = venue
self.sport = sport
self.dlist = dlist
self.notod = notod
self.noeat = noeat
self.slow = slow
self.noam = noam
self.datelist = [(datetime.date.today() + datetime.timedelta(days=i)).strftime("%Y-%m-%d") for i in range(8)]
self.__List2RealSite = ["场地1", "场地2", "场地3", "场地4", "场地5", "场地6", "场地7", "场地8", "场地9", "场地10", "场地11", "场地12"]
self.__List2RealTime = ["07:00-08:00", "08:00-09:00", "09:00-10:00", "10:00-11:00", "11:00-12:00",
"12:00-13:00",
"13:00-14:00", "14:00-15:00", "15:00-16:00", "16:00-17:00", "17:00-18:00",
"18:00-19:00",
"19:00-20:00", "20:00-21:00", "21:00-22:00"]
self.st_B = 0
def sta(self):
loGin(self.usag)
print()
timeN = int(datetime.datetime.now().strftime("%H%M"))
Wtimen = self.__List2RealTime.index(self.timeI)
Wsiten = self.__List2RealSite.index(self.field)
print(self.dlist, '\n', Wtimen, Wsiten, self.slow, self.noam, self.noeat)
seizor = venSeizor(self.lcoo, self.bcoo, self.usag, self.sport, self.venue)
while 1:
if timeN < 1150:
for i in range(6, -1, -1):
if i == 0 and self.notod:
continue
if self.dlist[i] == '1':
print('上午巡航场地')
self.st_B = seizor.getwhich(self.datelist[i], Wtimen, Wsiten, self.noam, self.noeat)
print(self.st_B)
else:
if timeN < 1201:
self.st_B = seizor.getOne(self.datelist[6], Wtimen, Wsiten)
for i in range(7, -1, -1):
if i == 0 and self.notod:
continue
if self.dlist[i] == '1':
print('--下午巡航场地')
self.st_B = seizor.getwhich(self.datelist[i], Wtimen, Wsiten, self.noam, self.noeat)
print(self.st_B)
#
#
# if __name__ == '__main__':
# bcoo = "_ga=GA1.3.1895526322.1645009080; NSC_wt_tqpsut.tkuv.fev.do_2020=ffffffff097f1cec45525d5f4f58455e445a4a4229a0; rememberMe=1Q9+5BqJn6B1Z3NfIeS5WkyMPFdJC6gOsMCevAEoHei/mPV+fOa94pvS+NnV1mkKH1/zDCn5ZbP1Rpu6ksyeiH7s2DbIO0ZDQ6s4AZUXk3u0dVdCCWx7gYt52eKedx/wGHf8yL5GS1PESvpdet1D/vwuvw+6b9tfavj7atSmyAYs715DeWRBO9FZAUgpIR/DG5428Uj7nHwG1Ke4JvFS0TCtvlLZNtt9R2sYX25c7AV/bKTVzp0aMDzhsKn0+EnC8eT4yaXXW4bGxjmZOUVlZ7Kov5WRKng6Trkn2Qi3NXLePJ4nX+16c0X/Yg6QZGdEtDaRbYC+BzQ9Xx2MA0XJHUoFBfE6gtQQfFab4c3e7T5J+492EWChbwyVWO6WVvYqb73NvHm/33HIbWvi5O4hI7dcpewZx1dF0Oo9mo80fgMp/+butLW6ApufzuvO17ZHkvLe+f6ezoopQlH11gacI1PfezkcZ/ap78RtovVw94gNI3rC98k42vchwyEMM/s9VYtovr59Iyxm7+JnHt4fA4rPznl9rb9opLPvAfh5GHkQfoLyQLP/UWB1gSPvr3ySZPKEUQKUWmZrLrCfjesdp8yhKaJ3pQjvWTv1RVsf5CNAJ7v8xklR20Z0ch/aOiTbwShg7T7HCehDpuojrUmnpLXvPaPKu/8Akq1YkC4MAxku0eAaQMGvheOy6p4AwLmBFfTjpKiMaP+rpmpmS3tTJAgfMzME0AsZ7edcpWDmWqlwVFpF/0qhN/dtbYxJDbPWPz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