增加日志
This commit is contained in:
@@ -149,6 +149,7 @@ class Clues extends BaseController
|
||||
);
|
||||
$id = $this->mdOplogs->add($addData);
|
||||
if ($id) {
|
||||
$logFile = 'test.txt';
|
||||
//消息推送给管理后台
|
||||
$admin_id = $clues['admin_id'];
|
||||
if (!$admin_id) {
|
||||
@@ -160,15 +161,18 @@ class Clues extends BaseController
|
||||
$firstRow = $this->mdOplogs->select($where, 'id asc', 1, 1);
|
||||
$admin_id = $firstRow ? $firstRow[0]['uid'] : 0;
|
||||
}
|
||||
debug_log("admin_id:" . $admin_id, $logFile);
|
||||
if ($admin_id) {
|
||||
$params = [
|
||||
'platform' => Sys_notice_model::PLAT_FORM_ADMIN,
|
||||
'uid' => $clues['pingan_user_id'],
|
||||
'content' => $params['content'],
|
||||
'content' => $addData['content'],
|
||||
'url' => '/receiver/clues/get?id=' . $clues['id'],
|
||||
];
|
||||
$sendPlatform = Sys_notice_model::PLAT_FORM_SYS_PINGAN;
|
||||
$this->sys_notice_model->addNotice($params, $sendPlatform, $_SESSION['id']);
|
||||
debug_log("params:" . json_encode($sendPlatform,JSON_UNESCAPED_UNICODE), $logFile);
|
||||
$req = $this->sys_notice_model->addNotice($params, $sendPlatform, $_SESSION['id']);
|
||||
debug_log("req:" . json_encode($req), $logFile);
|
||||
}
|
||||
$this->return_response();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user