提交其他文件
This commit is contained in:
25
app/api/controller/AreaController.php
Normal file
25
app/api/controller/AreaController.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user