official_website/app/common/model/System.php

17 lines
281 B
PHP
Raw Normal View History

2024-12-02 13:57:08 +08:00
<?php
namespace app\common\model;
use think\Model;
class System extends Model
{
protected $autoWriteTimestamp = true;
public function getStatustextAttr($value,$data)
{
$status = [0=>'不运行',1=>'运行'];
return $status[$data['status']];
}
}