添加日志
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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('添加失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user