1
This commit is contained in:
parent
0d50172f85
commit
e15d0762ba
@ -270,6 +270,12 @@ class PassController extends BaseAuthedController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
|
//埋点
|
||||||
|
$event = [
|
||||||
|
'name' => LogService::BUY_BATTLE_PASS,
|
||||||
|
'val' => \mt\Parameter::getVal('battlepass_price', '')
|
||||||
|
];
|
||||||
|
LogService::consumeDiamond($event);
|
||||||
//激活白金通行证状态
|
//激活白金通行证状态
|
||||||
User::update(array(
|
User::update(array(
|
||||||
'activated' => 1,
|
'activated' => 1,
|
||||||
@ -303,6 +309,12 @@ class PassController extends BaseAuthedController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
|
//埋点
|
||||||
|
$event = [
|
||||||
|
'name' => LogService::BUY_PASS_EXP,
|
||||||
|
'val' => $celPrice
|
||||||
|
];
|
||||||
|
LogService::consumeDiamond($event);
|
||||||
//提升通行证等级
|
//提升通行证等级
|
||||||
$items = array(
|
$items = array(
|
||||||
array(
|
array(
|
||||||
|
@ -15,6 +15,8 @@ class LogService extends BaseService
|
|||||||
const USER_RENAME = "user_rename"; //用户改名
|
const USER_RENAME = "user_rename"; //用户改名
|
||||||
const HERO_LEVEL_UP = "hero_level_Up"; //英雄升级
|
const HERO_LEVEL_UP = "hero_level_Up"; //英雄升级
|
||||||
const CHIP_LEVEL_UP = "chip_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 = "shop_buy_item_normal"; //商城购买物品
|
||||||
const SHOP_BUY_ITEM_DAILY = "shop_buy_item_daily"; //商城每日精选购买物品
|
const SHOP_BUY_ITEM_DAILY = "shop_buy_item_daily"; //商城每日精选购买物品
|
||||||
|
@ -452,7 +452,6 @@ class TameBattleDataService extends BaseService {
|
|||||||
if ($winningPro){
|
if ($winningPro){
|
||||||
|
|
||||||
$newScore = FormulaService::calcBattleAfterRankScore($this->userInfo,$this->battleInfo,$winningPro); //赛后排位积分
|
$newScore = FormulaService::calcBattleAfterRankScore($this->userInfo,$this->battleInfo,$winningPro); //赛后排位积分
|
||||||
error_log("addBattleSettlementSingle : ".$newScore);
|
|
||||||
//黄金以下段位,失败时不扣积分
|
//黄金以下段位,失败时不扣积分
|
||||||
if ($newScore < $this->userInfo['score'] && $this->userInfo['score']< 1300){
|
if ($newScore < $this->userInfo['score'] && $this->userInfo['score']< 1300){
|
||||||
$newScore = $this->userInfo['score'];
|
$newScore = $this->userInfo['score'];
|
||||||
@ -553,7 +552,6 @@ class TameBattleDataService extends BaseService {
|
|||||||
$winningPro = $this->celWinningPro($userDb);
|
$winningPro = $this->celWinningPro($userDb);
|
||||||
if ($winningPro){
|
if ($winningPro){
|
||||||
$newScore = FormulaService::calcBattleAfterRankScore($userDb,$info,$winningPro); //赛后排位积分
|
$newScore = FormulaService::calcBattleAfterRankScore($userDb,$info,$winningPro); //赛后排位积分
|
||||||
error_log("addBattleSettlementTeam : ".$newScore);
|
|
||||||
//黄金以下段位,失败时不扣积分
|
//黄金以下段位,失败时不扣积分
|
||||||
if ($newScore < $userDb['score'] && $userDb['score']< 1300){
|
if ($newScore < $userDb['score'] && $userDb['score']< 1300){
|
||||||
$newScore = $userDb['score'];
|
$newScore = $userDb['score'];
|
||||||
@ -844,7 +842,6 @@ class TameBattleDataService extends BaseService {
|
|||||||
$winningPro = $this->celWinningPro($this->userInfo);
|
$winningPro = $this->celWinningPro($this->userInfo);
|
||||||
if ($winningPro){
|
if ($winningPro){
|
||||||
$newScore = FormulaService::calcBattleAfterRankScore($this->userInfo,$this->battleInfo,$winningPro); //赛后排位积分
|
$newScore = FormulaService::calcBattleAfterRankScore($this->userInfo,$this->battleInfo,$winningPro); //赛后排位积分
|
||||||
error_log("updateScore : ".$newScore);
|
|
||||||
//黄金以下段位,失败时不扣积分
|
//黄金以下段位,失败时不扣积分
|
||||||
if ($newScore < $this->userInfo['score'] && $this->userInfo['score']< 1300){
|
if ($newScore < $this->userInfo['score'] && $this->userInfo['score']< 1300){
|
||||||
$newScore = $this->userInfo['score'];
|
$newScore = $this->userInfo['score'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user