style: run prettier as there's missing stuff apparently

This commit is contained in:
Constrat
2025-10-20 21:30:13 +02:00
parent d7524a4f9e
commit c91c1ff279
13 changed files with 286 additions and 283 deletions

View File

@@ -31,15 +31,15 @@
1. 把他丢进 Maa 文件夹下,形成如下文件结构.备注: 启动脚本[Maa-HTTP-Server-startup.bat](Maa-HTTP-Server-startup.bat).
```text
MaaCoreArknights_v3.9.0-beta.8
│ MAA.exe
│ MaaCore.dll
│ ...
└───Java-HTTP
│ Maa-HTTP-0.0.1.jar
│ Maa-HTTP-Server-startup.bat
```
```text
MaaCoreArknights_v3.9.0-beta.8
│ MAA.exe
│ MaaCore.dll
│ ...
└───Java-HTTP
│ Maa-HTTP-0.0.1.jar
│ Maa-HTTP-Server-startup.bat
```
2. 双击Maa-HTTP-Server-startup.bat启动.
3. 默认端口号8848钛金端口,如需修改,请修改 Maa-HTTP-Server-startup.bat 中的-port=8848 .
@@ -86,11 +86,11 @@
```json
{
"data": {
"version": "v3.9.0-beta"
},
"code": 0,
"message": "success"
"data": {
"version": "v3.9.0-beta"
},
"code": 0,
"message": "success"
}
```
@@ -108,9 +108,9 @@
```json
{
"adbPath": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe",
"host": "127.0.0.1:62001",
"detailJson": ""
"adbPath": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe",
"host": "127.0.0.1:62001",
"detailJson": ""
}
```
@@ -126,12 +126,12 @@
```json
{
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": true
},
"code": 0,
"message": "success"
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": true
},
"code": 0,
"message": "success"
}
```
@@ -158,11 +158,11 @@
```json
{
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"type": "Fight",
"params": {
"stage": "LastBattle"
}
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"type": "Fight",
"params": {
"stage": "LastBattle"
}
}
```
@@ -178,12 +178,12 @@
```json
{
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"taskId": 0
},
"code": 0,
"message": "success"
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"taskId": 0
},
"code": 0,
"message": "success"
}
```
@@ -208,12 +208,12 @@
```json
{
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"type": "Fight",
"taskId": 0,
"params": {
"stage": "LastBattle"
}
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"type": "Fight",
"taskId": 0,
"params": {
"stage": "LastBattle"
}
}
```
@@ -230,12 +230,12 @@
```json
{
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": false
},
"code": 0,
"message": "success"
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": false
},
"code": 0,
"message": "success"
}
```
@@ -260,7 +260,7 @@
```json
{
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
}
```
@@ -274,12 +274,12 @@
```json
{
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
}
```
@@ -304,7 +304,7 @@
```json
{
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
}
```
@@ -318,12 +318,12 @@
```json
{
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
}
```
@@ -348,7 +348,7 @@
```json
{
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3"
}
```
@@ -362,12 +362,12 @@
```json
{
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
"data": {
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"result": true
},
"code": 0,
"message": "success"
}
```
@@ -394,19 +394,19 @@
```json
{
"data": {
"list": [
{
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"host": "127.0.0.1:62026",
"adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe",
"uuid": "",
"status": 0
}
]
},
"code": 0,
"message": "success"
"data": {
"list": [
{
"id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3",
"host": "127.0.0.1:62026",
"adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe",
"uuid": "",
"status": 0
}
]
},
"code": 0,
"message": "success"
}
```
@@ -468,9 +468,9 @@
```json
{
"command": "getVersion",
"msgId": 114514,
"data": {}
"command": "getVersion",
"msgId": 114514,
"data": {}
}
```
@@ -484,13 +484,13 @@
```json
{
"data": {
"version": "v3.9.0-beta"
},
"command": "getVersion",
"msgId": 114514,
"code": 0,
"message": "success"
"data": {
"version": "v3.9.0-beta"
},
"command": "getVersion",
"msgId": 114514,
"code": 0,
"message": "success"
}
```
@@ -506,12 +506,12 @@
```json
{
"command": "connect",
"msgId": 114514,
"data": {
"adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe",
"host": "127.0.0.1:62001"
}
"command": "connect",
"msgId": 114514,
"data": {
"adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe",
"host": "127.0.0.1:62001"
}
}
```
@@ -525,14 +525,14 @@
```json
{
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": true
},
"command": "connect",
"msgId": 114514,
"code": 0,
"message": "success"
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"result": true
},
"command": "connect",
"msgId": 114514,
"code": 0,
"message": "success"
}
```
@@ -552,27 +552,27 @@ appendTask setTaskParams start stop等接口不再描述均可遵循以上规
```json
{
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"logId": 1,
"msg": 2,
"details": {
"uuid": "",
"details": {
"adb": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe",
"address": "127.0.0.1:62001",
"config": "General",
"width": 1280,
"height": 720
},
"what": "ResolutionGot",
"why": ""
}
},
"command": "callBack",
"msgId": 0,
"code": 0,
"message": "success"
"data": {
"id": "46b9d5cd60382f100b336b17d6817f8eda255f73",
"logId": 1,
"msg": 2,
"details": {
"uuid": "",
"details": {
"adb": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe",
"address": "127.0.0.1:62001",
"config": "General",
"width": 1280,
"height": 720
},
"what": "ResolutionGot",
"why": ""
}
},
"command": "callBack",
"msgId": 0,
"code": 0,
"message": "success"
}
```

View File

@@ -21,9 +21,9 @@
```json
{
"core": "2022-07-24-16-43-52-8218e7f",
"result": 0,
"server": "v0.0.1"
"core": "2022-07-24-16-43-52-8218e7f",
"result": 0,
"server": "v0.0.1"
}
```
@@ -44,8 +44,8 @@
```json
{
"id": 1,
"result": 0
"id": 1,
"result": 0
}
```
@@ -65,7 +65,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -77,7 +77,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -95,8 +95,8 @@
```json
{
"instances": [1],
"result": 0
"instances": [1],
"result": 0
}
```
@@ -116,10 +116,10 @@
```json
{
"id": 1,
"adb_path": "adb.exe",
"target": "127.0.0.1:62025",
"config": null
"id": 1,
"adb_path": "adb.exe",
"target": "127.0.0.1:62025",
"config": null
}
```
@@ -134,7 +134,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -150,7 +150,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -162,8 +162,8 @@
```json
{
"result": 0,
"target": "127.0.0.1:62025"
"result": 0,
"target": "127.0.0.1:62025"
}
```
@@ -183,8 +183,8 @@
```json
{
"uuid": "af01fba4f43da740\r\n",
"nums": 5
"uuid": "af01fba4f43da740\r\n",
"nums": 5
}
```
@@ -197,23 +197,23 @@
```json
{
"msgs": [
{
"body": {
"details": {
"adb": "adb.exe",
"address": "127.0.0.1:62025",
"config": "General"
},
"uuid": "af01fba4f43da740",
"what": "Connected",
"why": ""
},
"time": 1658687213962,
"type": 2
}
],
"result": 0
"msgs": [
{
"body": {
"details": {
"adb": "adb.exe",
"address": "127.0.0.1:62025",
"config": "General"
},
"uuid": "af01fba4f43da740",
"what": "Connected",
"why": ""
},
"time": 1658687213962,
"type": 2
}
],
"result": 0
}
```
@@ -236,7 +236,7 @@
```json
{
"uuid": "af01fba4f43da740\r\n"
"uuid": "af01fba4f43da740\r\n"
}
```
@@ -248,7 +248,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -266,8 +266,8 @@
```json
{
"result": 0,
"uuid": ["af01fba4f43da740"]
"result": 0,
"uuid": ["af01fba4f43da740"]
}
```
@@ -287,7 +287,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -299,8 +299,8 @@
```json
{
"result": 0,
"uuid": "af01fba4f43da740\r\n"
"result": 0,
"uuid": "af01fba4f43da740\r\n"
}
```
@@ -320,9 +320,9 @@
```json
{
"id": 1,
"types": "StartUp",
"params": {}
"id": 1,
"types": "StartUp",
"params": {}
}
```
@@ -336,8 +336,8 @@
```json
{
"result": 0,
"task_id": 1
"result": 0,
"task_id": 1
}
```
@@ -357,9 +357,9 @@
```json
{
"id": 1,
"task_id": 1,
"params": {}
"id": 1,
"task_id": 1,
"params": {}
}
```
@@ -373,7 +373,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -389,7 +389,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -401,13 +401,13 @@
```json
{
"result": 0,
"tasks": {
"1": {
"params": "{}",
"type": "StartUp"
}
"result": 0,
"tasks": {
"1": {
"params": "{}",
"type": "StartUp"
}
}
}
```
@@ -427,7 +427,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -439,7 +439,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -455,7 +455,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -467,7 +467,7 @@
```json
{
"result": 0
"result": 0
}
```
@@ -483,7 +483,7 @@
```json
{
"id": 1
"id": 1
}
```
@@ -509,9 +509,9 @@
```json
{
"id": 1,
"x": 114,
"y": 514
"id": 1,
"x": 114,
"y": 514
}
```
@@ -525,7 +525,7 @@
```json
{
"result": 0
"result": 0
}
```