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(