@@ -193,7 +193,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder | |||||
if req.State == 1 { | if req.State == 1 { | ||||
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditPass | returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditPass | ||||
userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForCancel | userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForCancel | ||||
outRequestNo := "r" + returnDay.OutTradeNo + outRequestNoSuffix | |||||
outRequestNo := "r_" + returnDay.OutTradeNo + outRequestNoSuffix | |||||
dealReturnOrdMap[returnDay.OutTradeNo] = struct { | dealReturnOrdMap[returnDay.OutTradeNo] = struct { | ||||
OutRequestNo string `json:"out_request_no"` | OutRequestNo string `json:"out_request_no"` | ||||
Amount float64 `json:"amount"` | Amount float64 `json:"amount"` | ||||
@@ -21,7 +21,11 @@ func AlipayJsApiCallBack(c *gin.Context) { | |||||
e.OutErr(c, e.ERR_INVALID_ARGS, "反射失败") | e.OutErr(c, e.ERR_INVALID_ARGS, "反射失败") | ||||
return | return | ||||
} | } | ||||
if args.GmtRefund != "" { | |||||
//TODO::退款通知不需要处理 | |||||
c.String(200, "success") | |||||
return | |||||
} | |||||
_, err := svc.DealCentralKitchenForSchoolOrderCallBack(args.OutTradeNo, args.TradeStatus) | _, err := svc.DealCentralKitchenForSchoolOrderCallBack(args.OutTradeNo, args.TradeStatus) | ||||
if err != nil { | if err != nil { | ||||
e.OutErr(c, e.ERR, err.Error()) | e.OutErr(c, e.ERR, err.Error()) | ||||
@@ -10,6 +10,7 @@ type AliPayCallback struct { | |||||
Charset string `json:"charset"` | Charset string `json:"charset"` | ||||
FundBillList string `json:"fund_bill_list"` | FundBillList string `json:"fund_bill_list"` | ||||
GmtCreate string `json:"gmt_create"` | GmtCreate string `json:"gmt_create"` | ||||
GmtRefund string `json:"gmt_refund"` | |||||
GmtPayment string `json:"gmt_payment"` | GmtPayment string `json:"gmt_payment"` | ||||
InvoiceAmount string `json:"invoice_amount"` | InvoiceAmount string `json:"invoice_amount"` | ||||
OrderType string `json:"order_type"` | OrderType string `json:"order_type"` | ||||