补全过滤入口与直接兑换,优化兑换分类和 WSS 建连

- GUI 接线 Exchange 绑定:新增「直接兑换」按钮,结果带 category/message 并进入结果面板
- 补 -max-price/-min-left(CLI 与 GUI 设置),Target 的价格与库存过滤不再悬空
- 删除死代码 sendUpdateUserInfo 及其请求结构体(浏览器流程不含该帧)
- ClassifyExchange 改为多路判定:合并 msg/actPreCondition/exchangeInfo 文案,status=200 且有 orderId 视为成功,新增 condition 分类(precondition 门禁)
- WSS 建连改为锁外 dial、锁内注册,同 uid 并发调用共享一次握手
- 默认传输层统一为 http(CLI/GUI/README),.gitignore 忽略 .DS_Store
- 同步 Wails 依赖升级(2.12.0 -> 2.15.0)并重新生成前端绑定
This commit is contained in:
yml2213
2026-10-13 19:57:08 +08:00
parent 72d59670d4
commit e8bb4eb571
13 changed files with 411 additions and 120 deletions
+8
View File
@@ -25,6 +25,8 @@ export namespace gui {
pid: number;
name: string;
targetText: string;
maxPrice: number;
minLeft: number;
cookieText: string;
selectedAccountLines: number[];
loops: number;
@@ -55,6 +57,8 @@ export namespace gui {
this.pid = source["pid"];
this.name = source["name"];
this.targetText = source["targetText"];
this.maxPrice = source["maxPrice"];
this.minLeft = source["minLeft"];
this.cookieText = source["cookieText"];
this.selectedAccountLines = source["selectedAccountLines"];
this.loops = source["loops"];
@@ -77,6 +81,8 @@ export namespace gui {
export class ExchangeResult {
uid: number;
resp?: huya.ScoreExchangePrizeResp;
category?: string;
message?: string;
error?: string;
static createFrom(source: any = {}) {
@@ -87,6 +93,8 @@ export namespace gui {
if ('string' === typeof source) source = JSON.parse(source);
this.uid = source["uid"];
this.resp = this.convertValues(source["resp"], huya.ScoreExchangePrizeResp);
this.category = source["category"];
this.message = source["message"];
this.error = source["error"];
}