diff --git a/doc/_common.py b/doc/_common.py index daf1c1b7..98dbe874 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -1841,8 +1841,8 @@ class RechargeGoods(object): self.fields = [ ['goods_id', '', '商品id(购买时用)'], ['diamond', 0, '充值所得钻石'], - ['currency', '', '货币地址'], ['price', '', '价格'], + ['max_buy_times', 0, '充值次数上限'], ] class RechargeHistory(object): diff --git a/webapp/services/LogService.php b/webapp/services/LogService.php index 2ab698ad..6029e5dd 100644 --- a/webapp/services/LogService.php +++ b/webapp/services/LogService.php @@ -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; } + }