From 952f06f73d4d93a6f0462cfa022aa4e17296247b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 12 Jan 2021 10:34:30 +0800 Subject: [PATCH] aa --- business/jxstore/cms/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 87999a980..913e19d9b 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -704,6 +704,9 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay if job.JobCategoryID == model.JobCategoryIDDropShipping && status != model.JobOrderStatusAuditPass { return fmt.Errorf("一件代发任务发货参数有误!") } + if jobOrder.Status != model.JobOrderStatusWaitAudit { + return fmt.Errorf("审核状态不正确!") + } //固定返现 //1、审核时,若此任务已过期或者已取消,不通过则应将此任务保证金退还给发起人,通过则应将单次任务保证金给接受人 //2、若此任务未过期,不通过则此任务剩余数量将+1,通过则应将单次任务保证金给接受人