This commit is contained in:
hujiabin 2023-03-27 17:11:16 +08:00
parent 56ff5f5856
commit 3500ef730d

View File

@ -82,29 +82,7 @@ class BaseAuthedController extends BaseController {
die(); die();
} }
} }
$userInfo = $this->_getOrmUserInfo();
switch (getReqVal('c', '')){
case 'ChipPage': {
if ($userInfo['level'] < \mt\LevelUp::USER_LEVEL_CHIP_LIMIT){
$this->_rspErr(1,'Not agreed terms');
die();
}
}
break;
case 'Emoji' : {
if ($userInfo['level'] < \mt\LevelUp::USER_LEVEL_EMOJI_LIMIT){
$this->_rspErr(1,'Not agreed terms');
die();
}
}
break;
case 'Parachute' : {
if ($userInfo['level'] < \mt\LevelUp::USER_LEVEL_PARACHUTE_MATCH_LIMIT){
$this->_rspErr(1,'Not agreed terms');
die();
}
}
}
/*if (SERVER_ENV == _ONLINE) { /*if (SERVER_ENV == _ONLINE) {
if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) { if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) {
if (!$this->isWhiteList() || myself()->_getChannel() != BC_CHANNEL) { if (!$this->isWhiteList() || myself()->_getChannel() != BC_CHANNEL) {