更新目录结构
This commit is contained in:
21
app/model/operate/ClientConfig.php
Normal file
21
app/model/operate/ClientConfig.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\model\operate;
|
||||
|
||||
use app\model\BaseModel;
|
||||
use think\model\concern\SoftDelete;
|
||||
use think\facade\Cache;
|
||||
|
||||
class ClientConfig extends BaseModel{
|
||||
|
||||
protected function getStatusTextAttr($value, $data){
|
||||
$status = ['禁用', '启用'];
|
||||
return isset($status[$data['status']]) ? $status[$data['status']] : '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user