fix(camel_oil_api): 调整并注释订单日志保存代码

- 将并发设置从 PrefetchConcurrencyAccounts 修改为 SingleAccountConcurrency
- 注释掉 SavePrefetchOrderLog 函数调用,暂时关闭订单日志保存功能
- 清理测试代码,删除多余空行和注释符号
This commit is contained in:
danial
2025-12-06 23:27:44 +08:00
parent 57d91991fc
commit ed3b3c9e42
2 changed files with 2 additions and 3 deletions

View File

@@ -294,7 +294,7 @@ func (c *Client) CreateCamelOilOrder(ctx context.Context, phone, token string, a
// 使用默认值继续执行
maxConcurrency = 5
} else {
maxConcurrency = settings.PrefetchConcurrencyAccounts
maxConcurrency = settings.SingleAccountConcurrency
}
// 结果存储
@@ -394,7 +394,7 @@ func (c *Client) CreateCamelOilOrder(ctx context.Context, phone, token string, a
glog.Info(ctx, "创建订单响应", respStr)
//记录响应数据到日志
service.CamelOil().SavePrefetchOrderLog(ctx, respStr)
//service.CamelOil().SavePrefetchOrderLog(ctx, respStr)
respStruct := struct {
Code string `json:"code"`

View File

@@ -43,7 +43,6 @@ func TestClient_LoginWithCaptcha(t *testing.T) {
func TestClient_CreateOrder(t *testing.T) {
//service.RegisterProxyPool(proxy_pool.New())
//_ = service.ProxyPool().InitStrategy(gctx.GetInitCtx(), "https://share.proxy.qg.net/get?key=8LO6KX52&num=1&area=&isp=0&format=txt&seq=\\r\\n&distinct=false", gtime.M)
ticker := time.NewTicker(time.Second * 1)
for range ticker.C {
client := NewClient(t.Context())