DengBiao před 1 rokem
rodič
revize
9cb962fc73
3 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. +1
    -1
      app/admin/svc/order/svc_central_kitchen_for_school_order.go
  2. +5
    -1
      app/customer/hdl/hdl_call_back.go
  3. +1
    -0
      app/customer/md/alipay.go

+ 1
- 1
app/admin/svc/order/svc_central_kitchen_for_school_order.go Zobrazit soubor

@@ -193,7 +193,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder
if req.State == 1 {
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditPass
userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForCancel
outRequestNo := "r" + returnDay.OutTradeNo + outRequestNoSuffix
outRequestNo := "r_" + returnDay.OutTradeNo + outRequestNoSuffix
dealReturnOrdMap[returnDay.OutTradeNo] = struct {
OutRequestNo string `json:"out_request_no"`
Amount float64 `json:"amount"`


+ 5
- 1
app/customer/hdl/hdl_call_back.go Zobrazit soubor

@@ -21,7 +21,11 @@ func AlipayJsApiCallBack(c *gin.Context) {
e.OutErr(c, e.ERR_INVALID_ARGS, "反射失败")
return
}

if args.GmtRefund != "" {
//TODO::退款通知不需要处理
c.String(200, "success")
return
}
_, err := svc.DealCentralKitchenForSchoolOrderCallBack(args.OutTradeNo, args.TradeStatus)
if err != nil {
e.OutErr(c, e.ERR, err.Error())


+ 1
- 0
app/customer/md/alipay.go Zobrazit soubor

@@ -10,6 +10,7 @@ type AliPayCallback struct {
Charset string `json:"charset"`
FundBillList string `json:"fund_bill_list"`
GmtCreate string `json:"gmt_create"`
GmtRefund string `json:"gmt_refund"`
GmtPayment string `json:"gmt_payment"`
InvoiceAmount string `json:"invoice_amount"`
OrderType string `json:"order_type"`


Načítá se…
Zrušit
Uložit