From cd3a9b1f0284b1ade866940c59e6db0e9f0ccec7 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 2 Sep 2020 17:16:59 +0800 Subject: [PATCH] Update News.php --- app/data/controller/api/News.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/data/controller/api/News.php b/app/data/controller/api/News.php index 98fc26d9c..9489ccc4a 100644 --- a/app/data/controller/api/News.php +++ b/app/data/controller/api/News.php @@ -39,8 +39,8 @@ class News extends Controller ]); if (input('mid') > 0) { $history = ['mid' => input('mid'), 'cid' => $id]; - $this->app->db->name('DataNewsHistory')->where($history)->delete(); - $this->app->db->name('DataNewsHistory')->insert($history); + $this->app->db->name('DataNewsXHistory')->where($history)->delete(); + $this->app->db->name('DataNewsXHistory')->insert($history); } } $query = $this->_query('DataNewsItem')->like('title,mark')->equal('id');