From b6d7fc0900736166a3858adc6ecffac3e2262410 Mon Sep 17 00:00:00 2001 From: songliang Date: Sat, 15 Jul 2023 19:29:40 +0800 Subject: [PATCH] ... --- webapp/services/LogService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/services/LogService.php b/webapp/services/LogService.php index 74bc09e6..a39d3fb3 100644 --- a/webapp/services/LogService.php +++ b/webapp/services/LogService.php @@ -141,10 +141,12 @@ class LogService extends BaseService } private static function goldRecord($params = []) { - $account_id = $params['account_id']; - if (empty($account_id)) { + if (isset($params['account_id']) && !empty($params['account_id']) { + $account_id = $params['account_id']; + } else { $account_id = myself()->_getAccountId(); } + // $logInfo['log_class'] = $logInfo['log_class']; // unset($logInfo['log_class']); $data = array(