js:进入联机状态0.0.3 (#1789)

适当增加延时
This commit is contained in:
mno
2025-09-01 09:32:08 +08:00
committed by GitHub
parent 40edbcfc66
commit b78a5b3cae
2 changed files with 5 additions and 5 deletions

View File

@@ -69,15 +69,15 @@ let enteredPlayers = [];
if (enteringUID) {
await keyPress("F2");
//点击输入uid
await sleep(500);
await sleep(2000);
if (!await findAndClick(enterUIDRo)) {
await genshin.returnMainUi();
continue;
}
await sleep(500);
await sleep(1000);
inputText(enteringUID);
//点击搜索
await sleep(500);
await sleep(1000);
if (!await findAndClick(searchRo)) {
await genshin.returnMainUi();
continue;
@@ -265,7 +265,7 @@ async function getPlayerSign() {
}
async function confirmSearchResult() {
maxAttempts = 3;
maxAttempts = 5;
for (let attempts = 0; attempts < maxAttempts; attempts++) {
const gameRegion = captureGameRegion();
try {

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "进入联机状态",
"version": "0.0.2",
"version": "0.0.3",
"tags": [
"狗粮"
],