|
@@ -11,7 +11,7 @@ use think\Db;
|
|
|
*/
|
|
|
class Topicdongtai extends Backend
|
|
|
{
|
|
|
-
|
|
|
+ protected $noNeedRight = ['delete_dongtai'];
|
|
|
/**
|
|
|
* Topicdongtai模型对象
|
|
|
* @var \app\admin\model\Topicdongtai
|
|
@@ -131,8 +131,10 @@ class Topicdongtai extends Backend
|
|
|
$this->error(__('Parameter %s can not be empty', 'ids'));
|
|
|
}
|
|
|
|
|
|
- //动态删除
|
|
|
- public function delete_dongtai($id){
|
|
|
+ /**
|
|
|
+ * 动态删除
|
|
|
+ */
|
|
|
+ private function delete_dongtai($id){
|
|
|
|
|
|
$where['id'] = $id;
|
|
|
$dongtai = Db::name('topic_dongtai')->field('id,topic_ids')->where($where)->find();
|