添加fields数据表修改类别
This commit is contained in:
1 parent
81d9f5e5e5
commit
73ae2535ae
22 files changed
+551
-79
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\system\model;
|
||||
|
||||
use app\common\model\Base;
|
||||
|
||||
class Fields extends Base
|
||||
{
|
||||
// 最后编辑时间修改器
|
||||
public function setBianjitimeAttr($value)
|
||||
{
|
||||
return strtotime($value);
|
||||
}
|
||||
|
||||
// 编辑时间获取器
|
||||
public function getBianjitimeAttr($value)
|
||||
{
|
||||
return date('Y-m-d',$value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user