实现 sse 检查订单,减少请求次数

This commit is contained in:
2025-12-04 09:45:35 +08:00
parent caa997b95c
commit 2d053ddf49
14 changed files with 107 additions and 67 deletions

View File

@@ -283,7 +283,7 @@ func (s *channelBaiyinService) CreateChannels(source netip.Addr, resourceId int3
}
} else {
bytes, _ := json.Marshal(configs)
slog.Debug("提交代理端口配置", "config", string(bytes))
slog.Debug("提交代理端口配置", "proxy", proxy.IP.String(), "config", string(bytes))
}
}
@@ -348,7 +348,7 @@ func (s *channelBaiyinService) RemoveChannels(batch string, ids []int32) error {
}
} else {
bytes, _ := json.Marshal(configs)
slog.Debug("清除代理端口配置", "config", string(bytes))
slog.Debug("清除代理端口配置", "proxy", ip, "config", string(bytes))
}
}

View File

@@ -668,7 +668,7 @@ type CreateTradeResult struct {
}
type ModifyTradeData struct {
TradeNo string `json:"trade_no" validate:"required"`
TradeNo string `json:"trade_no" query:"trade_no" validate:"required"`
Method m.TradeMethod `json:"method" validate:"required"`
}