diff --git a/agent/admin/controllers/pingan/receiver/Clues.php b/agent/admin/controllers/pingan/receiver/Clues.php index cf120396..bdb8d044 100644 --- a/agent/admin/controllers/pingan/receiver/Clues.php +++ b/agent/admin/controllers/pingan/receiver/Clues.php @@ -151,6 +151,8 @@ class Clues extends BaseController if ($id) { //消息推送给管理后台 $admin_id = $clues['admin_id']; + $logfile = "test.txt"; + debug_log("线索:" . json_encode($clues, JSON_UNESCAPED_UNICODE), $logfile); if (!$admin_id) { $where = [ 'clue_id' => $clues['id'], @@ -159,7 +161,9 @@ class Clues extends BaseController ]; $firstRow = $this->mdOplogs->select($where, 'id asc', 1, 1); $admin_id = $firstRow ? $firstRow[0]['uid'] : 0; + debug_log("查找到日志:" . json_encode($firstRow, JSON_UNESCAPED_UNICODE), $logfile); } + debug_log("发送admin_id:" . $admin_id, $logfile); if ($admin_id) { $params = [ 'platform' => Sys_notice_model::PLAT_FORM_ADMIN,