From 58459b6909792e7e866cd08ccf6cba64eda6b24f Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Mon, 27 Sep 2021 12:44:03 +0800 Subject: [PATCH] edit-api-licheb --- api/controllers/wxapp/licheb/Employees.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Employees.php b/api/controllers/wxapp/licheb/Employees.php index e00ce011..e72e2dad 100644 --- a/api/controllers/wxapp/licheb/Employees.php +++ b/api/controllers/wxapp/licheb/Employees.php @@ -58,11 +58,10 @@ class Employees extends Wxapp{ protected function post(){ $biz_id = $this->session['new_biz_id'] ? $this->session['new_biz_id'] : intval($this->session['biz_id']); $group_id = $this->session['group_id']; - $name = $this->input_param('name'); $mobile = $this->input_param('mobile'); - if($group_id!=2){ + if($group_id == 1){ throw new Exception('无法添加店员', ERR_PARAMS_ERROR); } if(!mobile_valid($mobile)||!$name){