caner 3 months ago
parent
commit
eddf4e3f9b
8 changed files with 7 additions and 2 deletions
  1. BIN
      .DS_Store
  2. BIN
      img/checking_white.png
  3. 7 2
      main.py
  4. BIN
      test.png
  5. BIN
      test2.png
  6. BIN
      test3.png
  7. BIN
      test4.png
  8. BIN
      test5.png

BIN
.DS_Store


BIN
img/checking_white.png


+ 7 - 2
main.py

@@ -15,6 +15,10 @@ def offDuty():
 def onDuty():
     # 上班工作台
     touch(Template('./img/gzt_white.png'))
+    sleep(1)
+    # 点击考勤
+    touch(Template('./img/checking_white.png'))
+    sleep(1)
 
 def main():
     try:
@@ -24,8 +28,9 @@ def main():
             # 打开d钉钉
             wda.start_app(DD_BUNDLE_ID)
             sleep(1)
-            offDuty()
-            wda.snapshot('test4.png')
+            onDuty()
+            sleep(1)
+            wda.snapshot('test5.png')
 
         except Exception as es:
             print('操作错误',es)

BIN
test.png


BIN
test2.png


BIN
test3.png


BIN
test4.png


BIN
test5.png