From e8e33028f108d70b8b7b55415304e1e3834bfdde Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 8 Aug 2024 11:13:59 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index ffbb22f5..06f00e5f 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -881,4 +881,13 @@ class BaseAuthedController extends BaseController { return myself()->_internalCallModuleStatic('events', $moduleName, $eventName, ...$args); } + /* + 添加通用日志埋点 + $prop必须是array对象(不是数组{}) + */ + public function _addTgLog($eventName, $prop) + { + myself()->_callServiceStatic('LogService', 'addLog', $eventName, $prop); + } + }