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