fix some
This commit is contained in:
parent
ce24ba405d
commit
35f21cd9b9
@ -3,12 +3,12 @@ DB_USERNAME=root
|
||||
DB_PASSWORD=123456
|
||||
|
||||
APP_ID=base
|
||||
APP_NAME=样板项目
|
||||
APP_NAME=Yaa项目
|
||||
APP_ENV=dev
|
||||
APP_DEBUG=1
|
||||
APP_PASSWORD=123456
|
||||
APP_URL=http://base-yii.com
|
||||
|
||||
APP_URL=http://Yaa.com
|
||||
SUPER_ADMIN_ACCOUNT=9527
|
||||
|
||||
APP_DISABLE_CACHE=1
|
||||
APP_SERVER_TIMEZONE=Asia/Shanghai
|
||||
|
||||
@ -118,7 +118,7 @@
|
||||
$this->identity = Admin::findOne(['email' => $account]);
|
||||
}
|
||||
|
||||
if (StringHelper::isPhoneNumber($account) || $account == '9527') {
|
||||
if (StringHelper::isPhoneNumber($account) || $account == $_ENV['SUPER_ADMIN_ACCOUNT']) {
|
||||
$this->accountType = static::ACCOUNT_TYPE_PHONE;
|
||||
$this->identity = Admin::findOne(['phone' => $account]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user