-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.py
29 lines (27 loc) · 958 Bytes
/
example.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
from SHU_cxAutoSign import User
me = User()
me.user_qq = '66666666'
me.username = '11111111'
me.password = 'xxxxxxxx'
me.login()
me.loadUser()
me.getClass()
newEvent = me.getEvent()
for i in newEvent:
type = me.getType(i["activeId"],i["courseId"],i["classId"])
if '手势' in type:
print('手势签到进行')
me.gestureSign(i["activeId"],i["courseId"],i["classId"])
if '位置' in type:
print('位置签到进行')
latitude,longtitude = '121.401833','31.32001'
address = '中国上海市宝山区'
me.locationSign(activeId=i["activeId"],latitude =latitude,longtitude=longtitude,address = address)
if '二维码' in type:
print('检测到二维码签到')
enc = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
me.QRSign(i["activeId"],enc)
if '拍照' in type:
print('检测到拍照签到,咱解决不了')
if '普通' in type:
print('普通签到,已完成')