区经理创建业务员
This commit is contained in:
@@ -110,8 +110,8 @@ class RegisterForm extends BaseModel
|
||||
$model->setPassword($this->password);
|
||||
$model->role = $this->role;
|
||||
$model->code = $code??'';
|
||||
$model->province_id= $this->province_id??$store->province_id;
|
||||
$model->city_id = $this->city_id??$store->city_id;
|
||||
$model->province_id= $this->province_id??$store->province_id?? \Yii::$app->user->identity->province_id;
|
||||
$model->city_id = $this->city_id??$store->city_id?? \Yii::$app->user->identity->city_id;
|
||||
$model->store_id = $this->store_id ?? '';
|
||||
$model->saveOrFail();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user