Parcourir la source

update

add_mode
DengBiao il y a 1 an
Parent
révision
5840797801
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 2
- 1
app/admin/svc/order/svc_central_kitchen_for_school_order.go Voir le fichier

@@ -118,6 +118,7 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR
Join("LEFT", "class_with_user", "user_identity.id = class_with_user.user_identity_id").
Join("LEFT", "class", "class_with_user.class_id = class.id").
Join("LEFT", "grade", "class.grade_id = grade.id").
Desc("central_kitchen_for_school_user_refund_day.id").
Limit(req.Limit, (req.Page-1)*req.Limit).FindAndCount(&m)
if err != nil {
return nil, 0, err
@@ -182,7 +183,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder
if req.State == 1 {
returnDay.State = enum.CentralKitchenForSchoolUserRefundDayStateForAuditPass
userWithDay.State = enum.CentralKitchenForSchoolUserWithDayStateForCancel
time.Sleep(1 * time.Second) //TODO::避免频繁调用
time.Sleep(250 * time.Millisecond) //TODO::避免频繁调用
//调用支付宝进行退款
err6, _ := svc2.CurlAlipayTradeRefund(md2.CurlAlipayTradeRefundReq{
Config: struct {


Chargement…
Annuler
Enregistrer