1
This commit is contained in:
parent
5fa5010441
commit
060452eb0c
@ -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"=> $_SERVER['REMOTE_ADDR'],
|
||||||
|
"#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