14 lines
324 B
PHP
14 lines
324 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\admin\controller;
|
||
|
|
||
|
use app\model\Citys;
|
||
|
use support\Request;
|
||
|
|
||
|
class CityController extends base
|
||
|
{
|
||
|
public function getCityList(Request $request){
|
||
|
$list = Citys::fieldRaw('city_id,city_name')->where('status','=',1)->order('sort','desc')->select();
|
||
|
return $this->success($list);
|
||
|
}
|
||
|
}
|