-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
104 lines (87 loc) · 2.43 KB
/
config.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
import datetime
today = (datetime.datetime.now().date()).strftime('%Y%m%d')
tomorrow = (datetime.datetime.now().date() + datetime.timedelta(days=1)).strftime('%Y%m%d')
class User:
username = ""
password = ""
time = tomorrow
reason_out = "学业"
from_location = "燕园"
to_location = "校外(社会面)"
gate = "南门"
detailed_reason = "吃饭"
country = "156" # 中国
province = "11" # 北京
city = "01" # 市辖区
district = "08" # 海淀
street = " "
detailed_route = " "
email = "[email protected]"
phone_number = "111"
campus = "燕园"
dormitory = "燕园111楼"
room_number = "111"
route = "北京市" # 路径
path = ""
def to_json(self):
return {
"sqbh": "",
"crxqd": self.from_location,
"crxzd": self.to_location,
"qdbc": "",
"zdbc": "",
"qdxm": self.gate,
"zdxm": "",
"crxrq": self.time,
"dzyx": self.email,
"yddh": self.phone_number,
"ssyq": self.campus,
"ssl": self.dormitory,
"ssfjh": self.room_number,
"crxsy": self.reason_out,
"crxjtsx": self.detailed_reason,
"yqc": [],
"yqr": [],
"gjdqm": self.country,
"ssdm": self.province,
"djsm": self.city,
"xjsm": self.district,
"jd": self.street,
"bcsm": "",
"crxxdgj": self.detailed_route,
"dfx14qrbz": "y",
"sfyxtycj": "",
"tjbz": "",
"shbz": "",
"shyj": "",
"fxjwljs": "",
"fxzgfxljs": "",
"fxqzmj": "",
"fxyczz": "",
"lxdh": self.phone_number,
"djrq": "20220823",
"djsjbz": "y",
}
class User1(User):
def __init__(self):
self.username = "1"
self.password = "1"
self.route = "1"
class User2(User):
def __init__(self):
self.username = "1"
self.password = "1"
class User3(User):
def __init__(self):
super().__init__()
self.username = "1"
self.password = "1"
class User4(User):
def __init__(self):
super().__init__()
self.username = "1"
self.password = "1"
self.route = "1"
if __name__ == "__main__":
print(tomorrow)
print(User2().to_json())