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();