|
|
@ -89,7 +89,7 @@ class AdminUserTeam extends BaseController |
|
|
$param['aid'] = 0; |
|
|
$param['aid'] = 0; |
|
|
$result = $User->register($param); |
|
|
$result = $User->register($param); |
|
|
|
|
|
|
|
|
if (!$result) throw new ValidateException('代理已存在'); |
|
|
if (!$result) throw new ValidateException('用户已存在'); |
|
|
|
|
|
|
|
|
return $this->renderSuccess('添加成功'); |
|
|
return $this->renderSuccess('添加成功'); |
|
|
} catch (ValidateException $validateException) { |
|
|
} catch (ValidateException $validateException) { |
|
|
|