feat: 更新基本加入决策逻辑,增加关闭详情页的操作以优化用户体验
This commit is contained in:
1 parent
c091e4d3f0
commit
1283645b75
1 file changed
+34
-1
@@ -4655,7 +4655,22 @@ def basic_join_decision(
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
# 已参与过,直接返回 True(表示已处理完成)
|
||||
# 已参与过,关闭详情页后返回 True(表示已处理完成)
|
||||
try:
|
||||
analyser.click(500, 470)
|
||||
except Exception:
|
||||
try:
|
||||
analyser.operation.click_back(analyser.device_id)
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
analyser._log_kv(
|
||||
"参与",
|
||||
"basic_join_decision:已关闭详情(重复参与)",
|
||||
action="close_detail",
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
return True
|
||||
except Exception:
|
||||
pass
|
||||
@@ -5992,6 +6007,24 @@ def basic_join_decision(
|
||||
"basic_join_decision完成(记录预约)",
|
||||
elapsed_seconds=round(elapsed, 2),
|
||||
)
|
||||
|
||||
# 记录预约后关闭详情页,避免影响后续预约回退
|
||||
try:
|
||||
analyser.click(500, 470)
|
||||
except Exception:
|
||||
try:
|
||||
analyser.operation.click_back(analyser.device_id)
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
analyser._log_kv(
|
||||
"参与",
|
||||
"basic_join_decision:已关闭详情(记录预约后)",
|
||||
action="close_detail_after_reservation",
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return True
|
||||
except Exception:
|
||||
# 若预约逻辑异常,退化为直接参与抽奖
|
||||
|
||||
Reference in new issue
Block a user