buildadmin/app/admin/model/AdminRule.php

20 lines
299 B
PHP
Raw Normal View History

2022-03-05 14:48:35 +00:00
<?php
namespace app\admin\model;
use think\Model;
/**
* AdminRule 模型
*/
class AdminRule extends Model
2022-03-05 14:48:35 +00:00
{
2023-06-23 14:13:55 +00:00
protected $autoWriteTimestamp = true;
public function setComponentAttr($value)
{
if ($value) $value = str_replace('\\', '/', $value);
return $value;
}
2022-03-05 14:48:35 +00:00
}