添加日志

This commit is contained in:
lccsw
2025-12-03 11:48:51 +08:00
parent abc9922b73
commit 61f80c87ae
2 changed files with 6 additions and 1 deletions
@@ -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);
}
+5
View File
@@ -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('添加失败');
}