edit-api-licheb
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user