区经理创建业务员

This commit is contained in:
2025-03-03 15:53:45 +08:00
parent 910c431d7d
commit dfa7ba27a5

View File

@@ -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();