fix(pool): 修正参数键名大小写错误

- 将参数键名从“createdurl”修改为“createdUrl”
- 修复因参数名错误导致的URL无法正确读取问题
- 提升请求参数的准确性和稳定性
This commit is contained in:
danial
2025-12-16 17:37:00 +08:00
parent 789f0be0fe
commit 0cab8a63e5
2 changed files with 2 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ func (c *AppleCardImpl) PayNotify() {
attach := strings.TrimSpace(c.GetString("attach"))
orderInfo := order.GetOrderByBankOrderId(ctx, attach) // OrderId
if orderInfo.BankOrderId == "" || len(orderInfo.BankOrderId) == 0 {
otelTrace.Logger.WithContext(ctx).Error("【APPLE】回调的订单号不存在", zap.String("attach", attach))
otelTrace.Logger.WithContext(ctx).Error("回调的订单号不存在", zap.String("attach", attach))
c.Ctx.WriteString("FAIL")
return
}

View File

@@ -54,7 +54,7 @@ func (s *SendCardTaskTypeWtr) CreateOrder(ctx context.Context, roadUid string, f
SetFormData(formData)
otelresty.TraceClient(webClient)
createdUrl := "https://api.wtrpay.xyz/pay"
if gojson.Json(roadInfo.Params).Get("createdurl").Tostring() != "" {
if gojson.Json(roadInfo.Params).Get("createdUrl").Tostring() != "" {
createdUrl = gojson.Json(roadInfo.Params).Get("createdUrl").Tostring()
}