You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bjhedasx/app/calculator/model/CalculatorCategoryPlace.php

27 lines
531 B

<?php
namespace app\calculator\model;
use think\model\concern\SoftDelete;
class CalculatorCategoryPlace extends Base
{
use SoftDelete;
/**
* 获取分类名称
* @date 2023-01-18
*/
public function getCategoryNameAttr($value, $data)
{
$category_name = [
1 => '疏散距离查询',
2 => '安全出口数量查询',
3 => '楼梯类型查询',
4 => '防火间距查询'
];
return $category_name[$data['category_id']];
}
}