fix(pool): 修正参数键名大小写错误
- 将参数键名从“createdurl”修改为“createdUrl” - 修复因参数名错误导致的URL无法正确读取问题 - 提升请求参数的准确性和稳定性
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user