|
@@ -39,7 +39,7 @@ class UserBasicForm extends Model {
|
|
|
*/
|
|
*/
|
|
|
public function rules() {
|
|
public function rules() {
|
|
|
return [
|
|
return [
|
|
|
- [['userId', 'password', 'passwordType','nation','realName', 'mobile','openBank','bankAddress','bankNo','status'], 'trim'],
|
|
|
|
|
|
|
+ [['userId', 'password', 'passwordType','realName', 'mobile','openBank','bankAddress','bankNo','status'], 'trim'],
|
|
|
[['userId'], 'required'],
|
|
[['userId'], 'required'],
|
|
|
[['idCard', 'allData'], 'required', 'on'=>['addWithUserName']],
|
|
[['idCard', 'allData'], 'required', 'on'=>['addWithUserName']],
|
|
|
[['nation','realName', 'mobile', 'idCard', 'openBank', 'bankAddress', 'bankNo'], 'required', 'on'=>'modifyProfile'],
|
|
[['nation','realName', 'mobile', 'idCard', 'openBank', 'bankAddress', 'bankNo'], 'required', 'on'=>'modifyProfile'],
|
|
@@ -55,7 +55,7 @@ class UserBasicForm extends Model {
|
|
|
$parentScenarios = parent::scenarios();
|
|
$parentScenarios = parent::scenarios();
|
|
|
$customScenarios = [
|
|
$customScenarios = [
|
|
|
'modifyPassword' => ['userId', 'password', 'passwordType'],
|
|
'modifyPassword' => ['userId', 'password', 'passwordType'],
|
|
|
- 'modifyProfile' => ['userId','nation','realName','idCard','mobile','openBank','bankAddress','bankNo'],
|
|
|
|
|
|
|
+ 'modifyProfile' => ['userId','realName','idCard','mobile','openBank','bankAddress','bankNo'],
|
|
|
'modifyStatus' => ['userId','status'],
|
|
'modifyStatus' => ['userId','status'],
|
|
|
'isModifyPasswordStatus' => ['userId','status'],
|
|
'isModifyPasswordStatus' => ['userId','status'],
|
|
|
];
|
|
];
|
|
@@ -67,7 +67,7 @@ class UserBasicForm extends Model {
|
|
|
'ID' => 'ID',
|
|
'ID' => 'ID',
|
|
|
'password' => '密码',
|
|
'password' => '密码',
|
|
|
'passwordType' => '密码类型',
|
|
'passwordType' => '密码类型',
|
|
|
- 'nation' => '民族',
|
|
|
|
|
|
|
+// 'nation' => '民族',
|
|
|
'realName' => '真实姓名',
|
|
'realName' => '真实姓名',
|
|
|
'idCard' => '身份证号',
|
|
'idCard' => '身份证号',
|
|
|
'mobile' => '手机号',
|
|
'mobile' => '手机号',
|
|
@@ -129,7 +129,7 @@ class UserBasicForm extends Model {
|
|
|
try {
|
|
try {
|
|
|
$userModel = User::findOne(['ID' => $this->userId]);
|
|
$userModel = User::findOne(['ID' => $this->userId]);
|
|
|
$this->adminOperateLogger->beforeUpdate($userModel);
|
|
$this->adminOperateLogger->beforeUpdate($userModel);
|
|
|
- $userModel->NATION = $this->nation;
|
|
|
|
|
|
|
+// $userModel->NATION = $this->nation;
|
|
|
$userModel->REAL_NAME = $this->realName;
|
|
$userModel->REAL_NAME = $this->realName;
|
|
|
$userModel->MOBILE = $this->mobile;
|
|
$userModel->MOBILE = $this->mobile;
|
|
|
$userModel->ID_CARD = $this->idCard;
|
|
$userModel->ID_CARD = $this->idCard;
|
|
@@ -144,7 +144,7 @@ class UserBasicForm extends Model {
|
|
|
'optType' => '修改会员资料',
|
|
'optType' => '修改会员资料',
|
|
|
'userId' => $this->userId,
|
|
'userId' => $this->userId,
|
|
|
'userName' => $userModel->USER_NAME,
|
|
'userName' => $userModel->USER_NAME,
|
|
|
- 'nation' => $this->nation,
|
|
|
|
|
|
|
+// 'nation' => $this->nation,
|
|
|
'realName' => $this->realName,
|
|
'realName' => $this->realName,
|
|
|
'mobile' => $this->mobile,
|
|
'mobile' => $this->mobile,
|
|
|
'idCard' => $this->idCard,
|
|
'idCard' => $this->idCard,
|