diff --git a/app/third/youchu/youchu_api.go b/app/third/youchu/youchu_api.go index 34118ea..f1261d8 100644 --- a/app/third/youchu/youchu_api.go +++ b/app/third/youchu/youchu_api.go @@ -127,7 +127,7 @@ func (this *YouChuClient) OrderRefund(order ordersmodel.Orders) (code int, respo Data: front.RefundRequestData{ TxnCode: "1003", SourceId: "16", - ReqTraceId: order.OrderNo, + ReqTraceId: order.OrderNo + time.Now().Format("20060102150405"), ReqDate: time.Now().Format("20060102150405"), MchtNo: config.GetConf().YouChu.MchtNo, OrgTxnSeq: order.OrgTxnSeq, @@ -144,9 +144,9 @@ func (this *YouChuClient) OrderRefund(order ordersmodel.Orders) (code int, respo return errorcode.SystemError, response } post, err := this.doPost(url, request.Body.BusiMainId, "b2c.gatewaypay.orderRefund", bytes) - utils.Log(nil, "b2c.orderRefund", post) + utils.Log(nil, "b2c.orderRefund", string(post)) if err != nil { - fmt.Println(err) + fmt.Println(err, "****************") return errorcode.YouChuOrderRefundFail, response } responseData := DecryptResponse(string(post), false)