From a26d801b49d515d3fbc5c73853f2dbd7fdbeb0bb Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Sat, 26 Mar 2022 01:06:39 +0800 Subject: [PATCH] edit-admin-business' --- admin/controllers/auto/Business.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/controllers/auto/Business.php b/admin/controllers/auto/Business.php index 706788db..abd3bc65 100644 --- a/admin/controllers/auto/Business.php +++ b/admin/controllers/auto/Business.php @@ -221,10 +221,10 @@ class Business extends HD_Controller{ 'city_id' => $info['city_id'], 'year' => $year, 'month' => $month, - 'status>='=>0 + 'status'=>1 ]; if($this->auto_business_model->get($where)){ - return ['code'=>0,'msg'=>'数据已存在']; + return $this->show_json(SYS_CODE_FAIL, '数据已存在'); } $data = [ 'brand_id' => $info['brand_id'], @@ -273,11 +273,11 @@ class Business extends HD_Controller{ 'city_id' => $info['city_id'], 'year' => $year, 'month' => $month, - 'status>='=>0, + 'status'=>1, 'id !=' => $info['id'] ]; if($this->auto_business_model->get($where)){ - return ['code'=>0,'msg'=>'数据已存在']; + return $this->show_json(SYS_CODE_FAIL, '数据已存在'); } $data = [ 'city_id' => $info['city_id'],