|
@@ -28,12 +28,13 @@ class UserCompanyBasic extends Base
|
|
|
//添加
|
|
|
public function add()
|
|
|
{
|
|
|
- $param = $this->request->only(['nickname', 'mobile', 'email' => '', 'companyArr' => []], 'post', 'trim');
|
|
|
+ $param = $this->request->only(['nickname', 'mobile', 'email' => '', 'level' => 2, 'companyArr' => []], 'post', 'trim');
|
|
|
|
|
|
$val = Validate::rule([
|
|
|
'nickname|真实姓名' => 'require|min:2|max:200',
|
|
|
'mobile|手机号' => 'require|number|length:11|mobile',
|
|
|
'email|邮箱' => 'email',
|
|
|
+ 'level|账号等级' => 'number|in:1,2',
|
|
|
'companyArr|关联业务公司' => 'array|max:100',
|
|
|
]);
|
|
|
|