From 6b5e31c24209d8229da47d3f6ab88699e5b0ae53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sat, 27 Mar 2021 17:30:00 +0800 Subject: [PATCH] Update Data.php --- app/data/controller/api/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/controller/api/Data.php b/app/data/controller/api/Data.php index 2116ca6a8..d9f22cc8e 100644 --- a/app/data/controller/api/Data.php +++ b/app/data/controller/api/Data.php @@ -31,7 +31,7 @@ class Data extends Controller */ public function getNotify() { - $query = $this->_query('DataBaseNotify')->where(['status' => 1, 'deleted' => 0]); + $query = $this->_query('DataBaseMessage')->where(['status' => 1, 'deleted' => 0]); $result = $query->equal('id')->order('sort desc,id desc')->page(true, false, false, 20); if (($id = input('id')) > 0) { $this->app->db->name('DataBaseNotify')->where(['id' => $id])->inc('num_read')->update();