添加路由

This commit is contained in:
luofei 2024-03-12 15:53:29 +08:00
parent 91d8fb32d4
commit 8df7adef7d
2 changed files with 5 additions and 5 deletions

View File

@ -605,7 +605,7 @@ class Common extends BaseController
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function getCity($code = 510000)
public function get_city($code = 510000)
{
$select = Db::name('geo_city')->where('province_code', $code)->field('city_id id,city_code code,city_name name')->select();
return app('json')->success($select);

View File

@ -690,10 +690,10 @@ Route::group('api/', function () {
Route::get('open_screen', 'api.Common/open_screen');
Route::get('city/get_province', 'api.Common/getProvince');
Route::get('city/get_city', 'api.Common/getCity');
Route::get('city/get_area', 'api.Common/getArea');
Route::get('city/get_street', 'api.Common/getStreet');
Route::get('city/get_Village', 'api.Common/getVillage');
Route::get('city/get_city', 'api.Common/get_city');
Route::get('city/get_area', 'api.Common/get_area');
Route::get('city/get_street', 'api.Common/get_street');
Route::get('city/get_Village', 'api.Common/get_village');
})->middleware(AllowOriginMiddleware::class)
->middleware(InstallMiddleware::class)
->middleware(CheckSiteOpenMiddleware::class)