...
This commit is contained in:
parent
b0bfc5f475
commit
949939568b
@ -16,6 +16,8 @@ class LogService extends BaseService
|
||||
const HERO_LEVEL_UP = "hero_level_Up"; //英雄升级
|
||||
const CHIP_LEVEL_UP = "chip_level_Up"; //芯片升级
|
||||
|
||||
const SHOP_BUY_ITEM = "shop_buy_item"; //商城购买物品
|
||||
|
||||
const CONSUME_TYPE = 0; //消耗 ↑
|
||||
const PRODUCT_TYPE = 1; //产出 ↓
|
||||
|
||||
@ -24,6 +26,10 @@ class LogService extends BaseService
|
||||
const BATTLE_PASS_AWARD = "battle_pass_award"; //通行证奖励
|
||||
const SIGN_AWARD = "sign_award"; //签到奖励
|
||||
|
||||
const CEBG_TO_DIAMOND = "cebg_to_diamond"; //CEBG兑换钻石
|
||||
const RECHARGE_DIAMOND = "recharge_diamond"; //充值钻石
|
||||
|
||||
|
||||
const PRONAME = 'game_2006_api';
|
||||
const GAMEID = 2006;
|
||||
|
||||
@ -74,6 +80,20 @@ class LogService extends BaseService
|
||||
TGLog::writeToLog(self::PRONAME,self::GAMEID,$logInfo);
|
||||
}
|
||||
|
||||
public static function productDiamond($event,$param = [])
|
||||
{
|
||||
$logInfo = self::goldRecord();
|
||||
$data = self::userInfo();
|
||||
$data['type'] = self::PRODUCT_TYPE;
|
||||
$data['event_name'] = $event['name'];
|
||||
$data['event_type'] = self::DIAMOND_TYPE;
|
||||
$data['event_product'] = 'diamond';
|
||||
$data['event_product_val'] = $event['val'];
|
||||
|
||||
$logInfo['properties'] = array_merge($data,$param);
|
||||
TGLog::writeToLog(self::PRONAME,self::GAMEID,$logInfo);
|
||||
}
|
||||
|
||||
|
||||
private static function userInfo()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user