From 838301fcb6cdb20e9525aeb7357025337d6cae5a Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 31 Oct 2019 17:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=9D=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/NoticeController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Sdk/Controller/NoticeController.class.php b/Application/Sdk/Controller/NoticeController.class.php index b4617450..c552830d 100644 --- a/Application/Sdk/Controller/NoticeController.class.php +++ b/Application/Sdk/Controller/NoticeController.class.php @@ -154,8 +154,8 @@ class NoticeController extends BaseController{ $data['content'] = $detail['content']; $data['create_time'] = $detail['create_time']; $data['type'] = $request['type']; - $model = M('notice_read', 'tab_')->where(['user_id' => $request['user_id'],['notice_id' => $request['notice_id']]])->find(); - if(empty($model)) + $notice_read = M('notice_read', 'tab_')->where(['user_id' => $request['user_id'],['notice_id' => $request['notice_id']]])->find(); + if(empty($notice_read)) { $arr['notice_id'] = $request['notice_id']; $arr['user_id'] = $request['user_id'];