diff --git a/agent/admin/controllers/pingan/receiver/Clues.php b/agent/admin/controllers/pingan/receiver/Clues.php index 221ff0f9..47c748ee 100644 --- a/agent/admin/controllers/pingan/receiver/Clues.php +++ b/agent/admin/controllers/pingan/receiver/Clues.php @@ -170,7 +170,7 @@ class Clues extends BaseController 'url' => '/receiver/clues/get?id=' . $clues['id'], ]; $sendPlatform = Sys_notice_model::PLAT_FORM_SYS_PINGAN; - debug_log("params:" . json_encode($sendPlatform,JSON_UNESCAPED_UNICODE), $logFile); + debug_log("params:" . json_encode($params, JSON_UNESCAPED_UNICODE), $logFile); $req = $this->sys_notice_model->addNotice($params, $sendPlatform, $_SESSION['id']); debug_log("req:" . json_encode($req), $logFile); } diff --git a/common/models/sys/Sys_notice_model.php b/common/models/sys/Sys_notice_model.php index c76013db..7b2d19b9 100644 --- a/common/models/sys/Sys_notice_model.php +++ b/common/models/sys/Sys_notice_model.php @@ -65,6 +65,11 @@ class Sys_notice_model extends HD_Model ]; $addData['icon'] = self::ICON_TYPE[$params['type']] ?: self::ICON_DEFAULT; $req = $this->add($addData); + if ($params['url'] == '/receiver/clues/get?id=21541') { + debug_log("sql语句:" . $this->db->last_query(), 'test.txt'); + debug_log("保存日志id:" . json_encode($req), 'test.txt'); + } + if (!is_numeric($req)) { throw new Exception('添加失败'); }