From 58407978011d409ffda06c6ef23e4ddbcc44971e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 4 Sep 2023 22:14:45 +0800 Subject: [PATCH] update --- app/admin/svc/order/svc_central_kitchen_for_school_order.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/order/svc_central_kitchen_for_school_order.go b/app/admin/svc/order/svc_central_kitchen_for_school_order.go index 8da264f..36a64fc 100644 --- a/app/admin/svc/order/svc_central_kitchen_for_school_order.go +++ b/app/admin/svc/order/svc_central_kitchen_for_school_order.go @@ -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 {