邹景立 преди 4 години
родител
ревизия
6b5e31c242
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/data/controller/api/Data.php

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