f
This commit is contained in:
@@ -114,9 +114,10 @@ func (l *YunYinSignPayCallbackLogic) YunYinSignPayCallback(w http.ResponseWriter
|
|||||||
}
|
}
|
||||||
logx.Infof("[云印签回调] 订单状态为pending,继续处理")
|
logx.Infof("[云印签回调] 订单状态为pending,继续处理")
|
||||||
|
|
||||||
// 验证支付状态:tradeState == "00000" 表示支付成功
|
// 验证支付状态:tradeState == "00000" 或 "success" 表示支付成功
|
||||||
logx.Infof("[云印签回调] 验证支付状态,tradeState: %s", tradeState)
|
logx.Infof("[云印签回调] 验证支付状态,tradeState: %s", tradeState)
|
||||||
if tradeState != "00000" {
|
isPaymentSuccess := tradeState == "00000" || tradeState == "success"
|
||||||
|
if !isPaymentSuccess {
|
||||||
logx.Infof("[云印签回调] 订单未支付成功,跳过处理,订单号: %s, 支付状态: %s", sourceOrderCode, tradeState)
|
logx.Infof("[云印签回调] 订单未支付成功,跳过处理,订单号: %s, 支付状态: %s", sourceOrderCode, tradeState)
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
w.Write([]byte("success"))
|
w.Write([]byte("success"))
|
||||||
|
|||||||
Reference in New Issue
Block a user