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)