@@ -72,13 +72,13 @@ discard block |
||
| 72 | 72 | const AFTER_REGISTER = 'afterRegister'; |
| 73 | 73 | |
| 74 | 74 | //场景定义 |
| 75 | - const SCENARIO_CREATE = 'create';//后台或控制台创建用户 |
|
| 76 | - const SCENARIO_UPDATE = 'update';//后台或控制台修改用户 |
|
| 77 | - const SCENARIO_REGISTER = 'basic_create';//邮箱注册 |
|
| 78 | - const SCENARIO_EMAIL_REGISTER = 'email_create';//邮箱注册 |
|
| 79 | - const SCENARIO_MOBILE_REGISTER = 'mobile_create';//手机号注册 |
|
| 80 | - const SCENARIO_SETTINGS = 'settings';//更新 |
|
| 81 | - const SCENARIO_CONNECT = 'connect';//账户链接或自动注册新用户 |
|
| 75 | + const SCENARIO_CREATE = 'create'; //后台或控制台创建用户 |
|
| 76 | + const SCENARIO_UPDATE = 'update'; //后台或控制台修改用户 |
|
| 77 | + const SCENARIO_REGISTER = 'basic_create'; //邮箱注册 |
|
| 78 | + const SCENARIO_EMAIL_REGISTER = 'email_create'; //邮箱注册 |
|
| 79 | + const SCENARIO_MOBILE_REGISTER = 'mobile_create'; //手机号注册 |
|
| 80 | + const SCENARIO_SETTINGS = 'settings'; //更新 |
|
| 81 | + const SCENARIO_CONNECT = 'connect'; //账户链接或自动注册新用户 |
|
| 82 | 82 | const SCENARIO_PASSWORD = 'password'; |
| 83 | 83 | |
| 84 | 84 | // following constants are used on secured email changing process |
@@ -157,8 +157,8 @@ discard block |
||
| 157 | 157 | static::SCENARIO_EMAIL_REGISTER => ['nickname', 'email', 'password'], |
| 158 | 158 | static::SCENARIO_MOBILE_REGISTER => ['mobile', 'password'], |
| 159 | 159 | static::SCENARIO_SETTINGS => ['username', 'email', 'password'], |
| 160 | - static::SCENARIO_CONNECT => ['nickname', 'email', 'password'],//链接账户密码可以为空邮箱可以为空 |
|
| 161 | - static::SCENARIO_PASSWORD => ['password'],//只修改密码 |
|
| 160 | + static::SCENARIO_CONNECT => ['nickname', 'email', 'password'], //链接账户密码可以为空邮箱可以为空 |
|
| 161 | + static::SCENARIO_PASSWORD => ['password'], //只修改密码 |
|
| 162 | 162 | ]); |
| 163 | 163 | } |
| 164 | 164 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | 'TargetValue' => $this->targetValue, |
| 62 | 62 | 'Title' => $this->title, |
| 63 | 63 | 'Body' => $this->body, |
| 64 | - 'ExtParameters' => $this->extParameters,//JSON |
|
| 64 | + 'ExtParameters' => $this->extParameters, //JSON |
|
| 65 | 65 | ]); |
| 66 | 66 | Yii::$app->queue->push(new PushNoticeToMobile([ |
| 67 | 67 | 'target' => $appRecipient->target, |