打牌一条龙:优化了结果检测函数的异常对局处理,解决了不同角色退出对局位置不同的问题 (#1793)

* Update manifest.json

* Update main.js

* Update repo/js/七圣召唤七日历练全自动/main.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: 秋云 <physligl@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
5117600049
2025-09-03 11:14:07 +08:00
committed by GitHub
parent 2b1acca8c9
commit 149c713d1a
2 changed files with 6 additions and 2 deletions

View File

@@ -204,6 +204,7 @@ async function isTaskRefreshed(filePath, options = {}) {
//检查挑战结果 await checkChallengeResults();
async function checkChallengeResults() {
const region1 = RecognitionObject.ocr(785, 200, 380, 270); // 结果区域
const region2 = RecognitionObject.ocr(1520, 170, 160, 40); // 退出位置
let capture = captureGameRegion();
let res1 = capture.find(region1);
log.info(`结果识别:${res1.text}`);
@@ -234,7 +235,9 @@ async function checkChallengeResults() {
await sleep(500);
click(1860,50); //点击齿轮图标
await sleep(1000);
click(1600, 200);//点击退出选项
let res2 = captureGameRegion().find(region2);
if (res2.text.includes('设置')) click(1600, 260);//点击退出-选项4
else click(1600, 200);//点击退出-选项3
await sleep(1000);
click(1180, 756);//点击确认
await sleep(6000);
@@ -716,3 +719,4 @@ await main();
})();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "打牌一条龙",
"version": "2.1",
"version": "2.2",
"description": "详见README.md",
"tags": [
"七圣召唤"