Files
pingan_new/app/Models/ActivityRule.php
2020-08-06 16:42:18 +08:00

19 lines
351 B
PHP

<?php
namespace App\Models;
class ActivityRule extends Model
{
const STATUS_OPEN = 1;
const STATUS_CLOSE = 0;
const STATUS = [
self::STATUS_OPEN => '正常',
self::STATUS_CLOSE => '关闭',
];
public function getStatusTextAttribute()
{
return self::STATUS[$this->status] ?? '未知';
}
}