Skip to content

Commit 22d929b

Browse files
committed
添加改变状态的方法供 独立模型使用,ArticleController里的 写死了模型为Document
1 parent 9669038 commit 22d929b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

wwwroot/Application/Admin/Controller/ThinkController.class.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ public function del($model = null, $ids=null){
156156
}
157157
}
158158

159+
/**
160+
* 设置一条或者多条数据的状态
161+
* @author huajie <[email protected]>
162+
*/
163+
public function setStatus($model='Document'){
164+
return parent::setStatus($model);
165+
}
166+
159167
public function edit($model = null, $id = 0){
160168
//获取模型信息
161169
$model = M('Model')->find($model);

0 commit comments

Comments
 (0)