增加日志

This commit is contained in:
lccsw
2025-12-03 10:20:20 +08:00
parent 98d1bec03f
commit 474e80dd30
@@ -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,