1
This commit is contained in:
commit
035e27aef8
@ -270,6 +270,12 @@ class PassController extends BaseAuthedController
|
||||
return;
|
||||
}
|
||||
$this->_decItems($costItems);
|
||||
//埋点
|
||||
$event = [
|
||||
'name' => LogService::BUY_BATTLE_PASS,
|
||||
'val' => \mt\Parameter::getVal('battlepass_price', '')
|
||||
];
|
||||
LogService::consumeDiamond($event);
|
||||
//激活白金通行证状态
|
||||
User::update(array(
|
||||
'activated' => 1,
|
||||
@ -303,6 +309,12 @@ class PassController extends BaseAuthedController
|
||||
return;
|
||||
}
|
||||
$this->_decItems($costItems);
|
||||
//埋点
|
||||
$event = [
|
||||
'name' => LogService::BUY_PASS_EXP,
|
||||
'val' => $celPrice
|
||||
];
|
||||
LogService::consumeDiamond($event);
|
||||
//提升通行证等级
|
||||
$items = array(
|
||||
array(
|
||||
|
@ -47,6 +47,15 @@ class SeasonController extends BaseAuthedController {
|
||||
// $this->awardService = new services\AwardService();
|
||||
$this->userInfo = $this->_safeGetOrmUserInfo();
|
||||
$this->redisService = $this->_getRedis($this->redis_key_ranking);
|
||||
$this->myRankedInfo = array(
|
||||
'ranking' => 10001,
|
||||
'name' => $this->userInfo['name'],
|
||||
'head_id' => $this->userInfo['head_id'],
|
||||
'head_frame' => $this->userInfo['head_frame'],
|
||||
'rank' => $this->userInfo['rank'],
|
||||
'score' => $this->userInfo['score'],
|
||||
'point' => 0,
|
||||
);
|
||||
if ($this->redisService->exists(RANKING_KEY.$this->redis_key_account)){
|
||||
$myInfo = $this->userInfo;
|
||||
if ($this->redisService->hexists(RANKING_KEY.$this->redis_key_account,$myInfo['account_id'])){
|
||||
|
@ -15,6 +15,8 @@ class LogService extends BaseService
|
||||
const USER_RENAME = "user_rename"; //用户改名
|
||||
const HERO_LEVEL_UP = "hero_level_Up"; //英雄升级
|
||||
const CHIP_LEVEL_UP = "chip_level_Up"; //芯片升级
|
||||
const BUY_BATTLE_PASS = "buy_battle_pass"; //通行证购买
|
||||
const BUY_PASS_EXP = "buy_pass_exp"; //购买通行证经验
|
||||
|
||||
const SHOP_BUY_ITEM = "shop_buy_item_normal"; //商城购买物品
|
||||
const SHOP_BUY_ITEM_DAILY = "shop_buy_item_daily"; //商城每日精选购买物品
|
||||
|
@ -535,7 +535,7 @@ class TameBattleDataService extends BaseService {
|
||||
$data['members'] = array();
|
||||
$pvp_mode = getXVal($this->allInfo,'pvp_match_mode', 0);
|
||||
foreach ($this->teamInfo as $info){
|
||||
$info['team_rank'] = getXVal($this->allInfo,'pvp_team_rank', 0);
|
||||
$info['pvp_team_rank'] = getXVal($this->allInfo,'pvp_team_rank', 0);
|
||||
$oldRank = 0;
|
||||
$newRank = 0;
|
||||
$oldScore = 0;
|
||||
@ -553,8 +553,8 @@ class TameBattleDataService extends BaseService {
|
||||
if ($winningPro){
|
||||
$newScore = FormulaService::calcBattleAfterRankScore($userDb,$info,$winningPro); //赛后排位积分
|
||||
//黄金以下段位,失败时不扣积分
|
||||
if ($newScore < $this->userInfo['score'] && $this->userInfo['score']< 1300){
|
||||
$newScore = $this->userInfo['score'];
|
||||
if ($newScore < $userDb['score'] && $userDb['score']< 1300){
|
||||
$newScore = $userDb['score'];
|
||||
}
|
||||
mt\Rank::calcNewRankAndScore( $newRank, $newScore);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user