From e0e39553807e98d39d264d283032c98ca6b6fbec Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Fri, 25 Nov 2022 11:00:07 +0800 Subject: [PATCH] 1 --- .env | 2 +- application/api/controller/Production.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env b/.env index ffee274..a4af5e2 100644 --- a/.env +++ b/.env @@ -140,7 +140,7 @@ net = '

- Privacy policy diff --git a/application/api/controller/Production.php b/application/api/controller/Production.php index 0a1de63..83262c1 100644 --- a/application/api/controller/Production.php +++ b/application/api/controller/Production.php @@ -390,6 +390,9 @@ class Production extends Controller } // $data['p_article_id'] = 7; $p_info = $this->production_article_obj->where('p_article_id',$data['p_article_id'])->find(); + if($p_info['state']!=0){ + return jsonError("Non repeatable submission"); + } if($p_info['proof_state']!=2){ return jsonError('Warning: It is a violation to publish your article online without completing PROOF. The ONLINE step will only continue if you have completed the PROOF step.');