refactor: 去除兼容配件类型model中不必要的获取器代码
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
This commit is contained in:
@@ -16,13 +16,6 @@ class ProductCompatPartsModel extends ProductCompatPartsBaseModel
|
||||
// 软件删除时间字段
|
||||
protected $deleteTime = 'deleted_at';
|
||||
|
||||
// 状态获取器
|
||||
public function getStatusTextAttr($value, array $data)
|
||||
{
|
||||
$status = ['启用', '禁用'];
|
||||
return $status[$data['status']];
|
||||
}
|
||||
|
||||
// 按所属语言查询
|
||||
public function scopeLanguage(\think\db\Query $query, int $value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user