增加日志
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user