25 lines
654 B
PHP
25 lines
654 B
PHP
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use app\api\logic\AreaLogic;
|
|
|
|
class AreaController extends BaseApiController
|
|
{
|
|
public array $notNeedLogin = ['getArea'];
|
|
/**
|
|
* @notes 开通城市列表
|
|
* @return \think\response\Json
|
|
* @author 胥聪
|
|
* @date 2025/10/15 16:32
|
|
*/
|
|
public function getArea(){
|
|
$data = $this->request->post();
|
|
// $params = (new TeamasterValidate())->goCheck();
|
|
$result = AreaLogic::getArea();
|
|
$default = AreaLogic::getDfaultArea($data);
|
|
$d['area_list'] = $result;
|
|
$d['default'] = $default;
|
|
return $this->success('查询成功', $d, 1, 1);
|
|
}
|
|
} |