Merge branch 'hjb' of git.kingsome.cn:server/game2006api into hjb

This commit is contained in:
hujiabin 2024-08-08 11:30:28 +08:00
commit be3e757306
2 changed files with 3 additions and 2 deletions

View File

@ -900,10 +900,11 @@ class BaseAuthedController extends BaseController {
/*
添加通用日志埋点
$prop必须是array对象不是数组{}
!!!注意eventName多人之间开发不要用重复了
*/
public function _addTgLog($eventName, $prop)
{
myself()->_callServiceStatic('LogService', 'addLog', $eventName, $prop);
myself()->_callServiceStatic('LogService', 'addTgLog', $eventName, $prop);
}
}

View File

@ -34,7 +34,7 @@ class LogService extends BaseService
const GOLD_TYPE = 0;
const DIAMOND_TYPE = 1;
private static function addLog($eventName, $prop){
public static function addTgLog($eventName, $prop){
$data = [
"#account_id" => myself()->_getAccountId(),
"#event_name"=> $eventName,