初始版本

This commit is contained in:
贾祥聪
2025-08-19 14:16:51 +08:00
commit f937a1f9b9
4373 changed files with 359728 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace app\common\model\city;
use app\common\model\BaseModel;
use think\model\concern\SoftDelete;
/**
* 城市关联类
* Class City
* @package app\common\model\city
*/
class City extends BaseModel
{
use SoftDelete;
protected $deleteTime = 'delete_time';
/**
* @notes 将距离转成km格式显示
* @param $value
* @param $data
* @return string
* @author cjhao
* @date 2024/9/3 22:56
*/
public function getDistanceDescAttr($value,$data){
return round($data['distance'],2).'km';
}
}