更新channel模块

This commit is contained in:
2020-03-26 22:12:31 +08:00
parent 8cd53f9366
commit 336f5af8ad
12 changed files with 209 additions and 124 deletions

View File

@@ -20,4 +20,9 @@ class Channel extends \think\Model {
protected $auto = array('update_time', 'status' => 1);
protected $insert = array('create_time');
protected function getStatusTextAttr($value, $data){
$status = [0 => '禁用', 1 => '启用'];
return isset($status[$data['status']]) ? $status[$data['status']] : '禁用';
}
}