Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb
This commit is contained in:
commit
236f15b8ab
@ -1841,8 +1841,8 @@ class RechargeGoods(object):
|
|||||||
self.fields = [
|
self.fields = [
|
||||||
['goods_id', '', '商品id(购买时用)'],
|
['goods_id', '', '商品id(购买时用)'],
|
||||||
['diamond', 0, '充值所得钻石'],
|
['diamond', 0, '充值所得钻石'],
|
||||||
['currency', '', '货币地址'],
|
|
||||||
['price', '', '价格'],
|
['price', '', '价格'],
|
||||||
|
['max_buy_times', 0, '充值次数上限'],
|
||||||
]
|
]
|
||||||
|
|
||||||
class RechargeHistory(object):
|
class RechargeHistory(object):
|
||||||
|
@ -34,6 +34,20 @@ class LogService extends BaseService
|
|||||||
const GOLD_TYPE = 0;
|
const GOLD_TYPE = 0;
|
||||||
const DIAMOND_TYPE = 1;
|
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){
|
public static function burialPointEvent($event){
|
||||||
$logInfo = self::ItemRecord();
|
$logInfo = self::ItemRecord();
|
||||||
$logInfo['properties'] = $event;
|
$logInfo['properties'] = $event;
|
||||||
@ -177,4 +191,5 @@ class LogService extends BaseService
|
|||||||
];
|
];
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user