Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb

This commit is contained in:
hujiabin 2024-08-08 11:06:08 +08:00
commit 236f15b8ab
2 changed files with 16 additions and 1 deletions

View File

@ -1841,8 +1841,8 @@ class RechargeGoods(object):
self.fields = [
['goods_id', '', '商品id(购买时用)'],
['diamond', 0, '充值所得钻石'],
['currency', '', '货币地址'],
['price', '', '价格'],
['max_buy_times', 0, '充值次数上限'],
]
class RechargeHistory(object):

View File

@ -34,6 +34,20 @@ class LogService extends BaseService
const GOLD_TYPE = 0;
const DIAMOND_TYPE = 1;
private static function addLog($eventName, $prop){
$data = [
"#account_id" => myself()->_getAccountId(),
"#event_name"=> $eventName,
"#ip"=> phpcomon\getIPv4(),
"#controller"=> getReqVal('c', ''),
"#action"=> getReqVal('a', ''),
"#time"=> myself()->_getNowTime(),
"#type"=> "track",
"properties"=> $prop
];
TGLog::writeToLog(self::PRONAME, self::GAMEID, $data);
}
public static function burialPointEvent($event){
$logInfo = self::ItemRecord();
$logInfo['properties'] = $event;
@ -177,4 +191,5 @@ class LogService extends BaseService
];
return $data;
}
}