1
This commit is contained in:
parent
64a5aefaf1
commit
bfa2feb2aa
@ -112,22 +112,13 @@ class BaseAuthedController extends BaseController {
|
||||
$controller = getReqVal('c', '');
|
||||
switch ($controller){
|
||||
case "Chip" : {
|
||||
// if ($userDb['level'] < \mt\LevelUp::USER_LEVEL_CHIP_LIMIT){
|
||||
if ($userDb['star_num'] < \mt\StarLevel::STAR_NUM_CHIP_LIMIT){
|
||||
if (getReqVal('a', '') != 'chipList' && $userDb['star_num'] < \mt\StarLevel::STAR_NUM_CHIP_LIMIT){
|
||||
$this->_rspErr(1,'Not agreed terms. star number of need ' .\mt\StarLevel::STAR_NUM_CHIP_LIMIT);
|
||||
die();
|
||||
}
|
||||
}
|
||||
// break;
|
||||
// case "ChipPage" : {
|
||||
// if ($userDb['level'] < \mt\LevelUp::USER_LEVEL_CHIP_LIMIT){
|
||||
// $this->_rspErr(1,'Not agreed terms Level of need ' .\mt\LevelUp::USER_LEVEL_CHIP_LIMIT);
|
||||
// die();
|
||||
// }
|
||||
// }
|
||||
break;
|
||||
case "Emoji" : {
|
||||
// if ($userDb['level'] < \mt\LevelUp::USER_LEVEL_EMOJI_LIMIT){
|
||||
if ($userDb['star_num'] < \mt\StarLevel::STAR_NUM_EMOJI_LIMIT){
|
||||
$this->_rspErr(1,'Not agreed terms star number of need ' .\mt\StarLevel::STAR_NUM_EMOJI_LIMIT);
|
||||
die();
|
||||
@ -135,7 +126,6 @@ class BaseAuthedController extends BaseController {
|
||||
}
|
||||
break;
|
||||
case "Fragment" : {
|
||||
// if (getReqVal('a', '') == 'syntheticFragment' && $userDb['level'] < \mt\LevelUp::USER_LEVEL_PIECE_LIMIT){
|
||||
if (getReqVal('a', '') == 'syntheticFragment' && $userDb['star_num'] < \mt\StarLevel::STAR_NUM_PIECE_LIMIT){
|
||||
$this->_rspErr(1,'Not agreed terms star number of need ' .\mt\StarLevel::STAR_NUM_PIECE_LIMIT);
|
||||
die();
|
||||
|
@ -50,7 +50,7 @@ class TeamController extends BaseAuthedController {
|
||||
}*/
|
||||
|
||||
$userDb = $this->_getOrmUserInfo();
|
||||
|
||||
error_log("CREATE TEAM : " . $userDb['account_id']);
|
||||
//验证pve_instance_id合法性
|
||||
if ($pveInstanceId){
|
||||
// if ($userDb['level'] < \mt\LevelUp::USER_LEVEL_PVE_MATCH_LIMIT){
|
||||
|
@ -197,7 +197,7 @@ class User extends BaseModel {
|
||||
|
||||
public static function toSimple($row)
|
||||
{
|
||||
mt\LevelUp::getExpByLv($row['level'],$row['exp']);
|
||||
// mt\LevelUp::getExpByLv($row['level'],$row['exp']);
|
||||
$heroDb = Hero::find($row['hero_id']);
|
||||
if ($heroDb){
|
||||
$heroId = $heroDb['hero_id'];
|
||||
@ -231,7 +231,7 @@ class User extends BaseModel {
|
||||
}
|
||||
|
||||
public static function toPreset($row){
|
||||
mt\LevelUp::getExpByLv($row['level'],$row['exp']);
|
||||
// mt\LevelUp::getExpByLv($row['level'],$row['exp']);
|
||||
$heroDb = Hero::find($row['hero_id']);
|
||||
$heroId = 0;
|
||||
if ($heroDb){
|
||||
|
Loading…
x
Reference in New Issue
Block a user