This commit is contained in:
mkm 2023-05-18 23:09:03 +08:00
parent 64ec4950ae
commit 7c9e089b70
2 changed files with 9 additions and 0 deletions

View File

@ -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();
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??[]);
}
}

View File

@ -574,6 +574,7 @@ Route::group('api/', function () {
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');
Route::get('city/get_cloud_shop', 'api.Common/get_cloud_shop');
//经纬度转位置信息
Route::get('lbs/geocoder', 'api.Common/lbs_geocoder');
//获取支付宝支付链接