|
|
@@ -51,7 +51,6 @@ class RechargeForm extends Model {
|
|
|
[['applyAmount'], 'isApplyAmount'],
|
|
|
[['applyAmount'], 'number', 'max' => 10000000000, 'min' => 1],
|
|
|
[['selectedIds'], 'isSelected'],
|
|
|
- [['id'], 'number'],
|
|
|
//[['sn'], 'isSn'],
|
|
|
];
|
|
|
}
|
|
|
@@ -109,6 +108,8 @@ class RechargeForm extends Model {
|
|
|
}else{
|
|
|
$this->_userId = $userInfo['USER_ID'];
|
|
|
}
|
|
|
+ } elseif ($this->scenario == 'updateByUser') {
|
|
|
+ $this->_userId = \Yii::$app->user->id;
|
|
|
} else {
|
|
|
$this->addError($attribute, 'Scenes does not exist'); // 场景不存在
|
|
|
return false;
|