mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 14:29:15 +08:00
Update Data.php
This commit is contained in:
parent
63b897b34a
commit
6b5e31c242
@ -31,7 +31,7 @@ class Data extends Controller
|
|||||||
*/
|
*/
|
||||||
public function getNotify()
|
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);
|
$result = $query->equal('id')->order('sort desc,id desc')->page(true, false, false, 20);
|
||||||
if (($id = input('id')) > 0) {
|
if (($id = input('id')) > 0) {
|
||||||
$this->app->db->name('DataBaseNotify')->where(['id' => $id])->inc('num_read')->update();
|
$this->app->db->name('DataBaseNotify')->where(['id' => $id])->inc('num_read')->update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user