Explorar el Código

update

add_mode
DengBiao hace 1 año
padre
commit
9cb962fc73
Se han modificado 3 ficheros con 7 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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"`


Cargando…
Cancelar
Guardar