From fcb9929c6c29e5e2fc86425ee80bfd1404d79b8b Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 6 Sep 2024 15:16:31 +0800 Subject: [PATCH] 1 --- app/admin/svc/order/svc_central_kitchen_for_school_order.go | 5 ++++- 1 file changed, 4 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 5913fda..9b2c9b2 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 @@ -246,7 +246,10 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch _ = session.Rollback() return err3 } - + if userWithDay == nil { + utils.FilePutContents("CentralKitchenForSchoolOrderRefundAudit_NOT_FOUND", utils.SerializeStr(returnDay)) + continue + } //if userWithDay.State == enum.CentralKitchenForSchoolUserWithDayStateForCancel && returnDay.State != enum.CentralKitchenForSchoolUserRefundDayStateForRefundErr { // //TODO::当前订餐记录,已退款了 // isAlreadyReturnDayId = append(isAlreadyReturnDayId, returnDay.Id)