This commit is contained in:
aozhiwei 2024-08-08 10:52:31 +08:00
parent 5fa5010441
commit 060452eb0c

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"=> $_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){
$logInfo = self::ItemRecord();
$logInfo['properties'] = $event;
@ -177,4 +191,5 @@ class LogService extends BaseService
];
return $data;
}
}