فهرست منبع

fix(Restart): Occasional start failure

huangrunheng 2 سال پیش
والد
کامیت
77df2f8e50

+ 1 - 1
tasks/Restart/assets.py

@@ -45,7 +45,7 @@ class RestartAssets:
 	# 庭院卷轴打开 
 	I_LOGIN_SCROOLL_OPEN = RuleImage(roi_front=(1208,609,33,83), roi_back=(1208,609,33,83), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_login_scrooll_open.png")
 	# 庭院卷轴关闭 
-	I_LOGIN_SCROOLL_CLOSE = RuleImage(roi_front=(1184,628,35,45), roi_back=(1184,628,35,45), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_login_scrooll_close.png")
+	I_LOGIN_SCROOLL_CLOSE = RuleImage(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), threshold=0.7, method="Template matching", file="./tasks/Restart/login/login_login_scrooll_close.png")
 	# description 
 	I_LOGIN_RED_CLOSE = RuleImage(roi_front=(1158,62,39,37), roi_back=(912,42,309,281), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_login_red_close.png")
 	# description 

+ 3 - 3
tasks/Restart/login/image.json

@@ -11,10 +11,10 @@
   {
     "itemName": "login_scrooll_close",
     "imageName": "login_login_scrooll_close.png",
-    "roiFront": "1184,628,35,45",
-    "roiBack": "1184,628,35,45",
+    "roiFront": "1181,634,28,39",
+    "roiBack": "1162,595,77,112",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.7,
     "description": "庭院卷轴关闭"
   },
   {

BIN
tasks/Restart/login/login_login_scrooll_close.png


+ 1 - 1
tasks/Restart/script_task.py

@@ -53,7 +53,7 @@ if __name__ == '__main__':
     config = Config('oas1')
     device = Device(config)
     task = ScriptTask(config, device)
-    task.harvest()
+    task.app_restart()
     # task.screenshot()
     # print(task.appear_then_click(task.I_LOGIN_SCROOLL_CLOSE, threshold=0.9))