diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index bc71f2ef..c4d5e086 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -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); } } diff --git a/webapp/services/LogService.php b/webapp/services/LogService.php index 6029e5dd..5621674f 100644 --- a/webapp/services/LogService.php +++ b/webapp/services/LogService.php @@ -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,