更新
This commit is contained in:
parent
64ec4950ae
commit
7c9e089b70
@ -491,4 +491,12 @@ class Common extends BaseController
|
|||||||
$select=Db::name('geo_village')->where('street_code',$street_code)->field('village_id id,village_code code,village_name name')->select();
|
$select=Db::name('geo_village')->where('street_code',$street_code)->field('village_id id,village_code code,village_name name')->select();
|
||||||
return app('json')->success($select);
|
return app('json')->success($select);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取云店铺
|
||||||
|
public function get_cloud_shop($street_code){
|
||||||
|
$find=DB::name('merchant')->alias('m')->where('m.type_id',11)->where('m.is_del',0)->where('m.status',1)
|
||||||
|
->join('merchant_address a','a.mer_id=m.mer_id and a.street_id='.$street_code)
|
||||||
|
->field('m.mer_id')->find();
|
||||||
|
return app('json')->success($find??[]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -574,6 +574,7 @@ Route::group('api/', function () {
|
|||||||
Route::get('city/get_area', 'api.Common/get_area');
|
Route::get('city/get_area', 'api.Common/get_area');
|
||||||
Route::get('city/get_street', 'api.Common/get_street');
|
Route::get('city/get_street', 'api.Common/get_street');
|
||||||
Route::get('city/get_village', 'api.Common/get_village');
|
Route::get('city/get_village', 'api.Common/get_village');
|
||||||
|
Route::get('city/get_cloud_shop', 'api.Common/get_cloud_shop');
|
||||||
//经纬度转位置信息
|
//经纬度转位置信息
|
||||||
Route::get('lbs/geocoder', 'api.Common/lbs_geocoder');
|
Route::get('lbs/geocoder', 'api.Common/lbs_geocoder');
|
||||||
//获取支付宝支付链接
|
//获取支付宝支付链接
|
||||||
|
Loading…
x
Reference in New Issue
Block a user