AutoMonday-V1.3.2版本更新 (#2233)

1. 修改了账户名的获取逻辑:删除了原有的ocr获取uid,改为手动输入的方式(历史记录会受到影响,但避免了后续出现bug的可能性)
This commit is contained in:
江紫烟owo
2025-10-24 17:15:16 +08:00
committed by GitHub
parent d876b91329
commit cf18d29a75
4 changed files with 9 additions and 17 deletions

View File

@@ -41,6 +41,8 @@
---------------------------------------------------------------------------------------------------------------------------------
## 更新日志
### 1.3.22025.10.24
1. 修改了账户名的获取逻辑删除了原有的ocr获取uid改为手动输入的方式历史记录会受到影响但避免了后续出现bug的可能性
### 1.3.12025.10.09
1. 完善了法器角色充能模式的相关逻辑
2. 修复了部分描述不符的地方

View File

@@ -516,21 +516,6 @@
return now >= cdTime;
}
// 获取当前账户id
async function getCurrentUsername() {
await genshin.returnMainUi();
const texts = await textOCR("", 0.3, 0, 2, 1751, 1050, 115, 25);
if (result.found) {
log.debug("当前用户:" + texts.text);
await genshin.returnMainUi();
return texts.text;
}
log.info("未找到用户名");
await genshin.returnMainUi();
return null;
}
// 自动战斗函数
async function autoFight(timeout) {
const cts = new CancellationTokenSource();
@@ -1151,7 +1136,7 @@
TEAM = settings.TEAMname;
const username = await getCurrentUsername();
const username = settings.username || "默认账户";
const cdRecordPath = `record/${username}_cd.txt`;// 修改CD记录文件路径包含用户名
//设置分辨率和缩放

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "全自动周一",
"version": "1.3.1",
"version": "1.3.2",
"tags": [
"周常",
"纪行",

View File

@@ -4,6 +4,11 @@
"type": "checkbox",
"label": "我已认真阅读readme文件及注意事项并做好了相关设置"
},
{
"name": "username",
"type": "input-text",
"label": "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n账户名称单账户无需理会"
},
{
"name": "ifZBY",
"type": "checkbox",