Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
5840797801
1 changed files with 2 additions and 1 deletions
  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 View File

@@ -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_with_user", "user_identity.id = class_with_user.user_identity_id").
Join("LEFT", "class", "class_with_user.class_id = class.id"). Join("LEFT", "class", "class_with_user.class_id = class.id").
Join("LEFT", "grade", "class.grade_id = grade.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) Limit(req.Limit, (req.Page-1)*req.Limit).FindAndCount(&m)
if err != nil { if err != nil {
return nil, 0, err return nil, 0, err
@@ -182,7 +183,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
time.Sleep(1 * time.Second) //TODO::避免频繁调用
time.Sleep(250 * time.Millisecond) //TODO::避免频繁调用
//调用支付宝进行退款 //调用支付宝进行退款
err6, _ := svc2.CurlAlipayTradeRefund(md2.CurlAlipayTradeRefundReq{ err6, _ := svc2.CurlAlipayTradeRefund(md2.CurlAlipayTradeRefundReq{
Config: struct { Config: struct {


Loading…
Cancel
Save