mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-23 15:21:36 +08:00
Update News.php
This commit is contained in:
parent
a47b0665b8
commit
cd3a9b1f02
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user