This commit is contained in:
aozhiwei 2024-08-08 11:48:44 +08:00
parent be3e757306
commit e9023cb978

View File

@ -48,6 +48,26 @@ class LogService extends BaseService
TGLog::writeToLog(self::PRONAME, self::GAMEID, $data); TGLog::writeToLog(self::PRONAME, self::GAMEID, $data);
} }
public static function addGameLogEx($accountId, $type, $subtype, $params)
{
$fieldsKv = array(
'account_id' => $accountId,
'type' => $type,
'subtype' => $subtype,
'param1' => getXVal($params, 'param1', ''),
'param2' => getXVal($params, 'param2', ''),
'param3' => getXVal($params, 'param3', ''),
'param4' => getXVal($params, 'param4', ''),
'createtime' => myself()->_getNowTime(),
'modifytime' => myself()->_getNowTime()
);
SqlHelper::insert(
myself()->_getMysql($accountId),
't_game_log',
$fieldsKv
);
}
public static function burialPointEvent($event){ public static function burialPointEvent($event){
$logInfo = self::ItemRecord(); $logInfo = self::ItemRecord();
$logInfo['properties'] = $event; $logInfo['properties'] = $event;