add
This commit is contained in:
21
app/admin/model/AdminRule.php
Normal file
21
app/admin/model/AdminRule.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* AdminRule 模型
|
||||
* @property int $status 状态:0=禁用,1=启用
|
||||
*/
|
||||
class AdminRule extends Model
|
||||
{
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
public function setComponentAttr($value)
|
||||
{
|
||||
if ($value) $value = str_replace('\\', '/', $value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user