first commit

This commit is contained in:
2020-08-06 16:42:18 +08:00
commit eb792c34aa
12972 changed files with 1511424 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?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] ?? '未知';
}
}