添加获取自提点信息
This commit is contained in:
parent
e5b5e25a22
commit
1142d65eff
@ -9,6 +9,7 @@ use app\common\model\user\User;
|
||||
use app\common\server\ConfigServer;
|
||||
use app\common\server\JsonServer;
|
||||
use app\common\server\WeChatServer;
|
||||
use app\common\model\LocalStorePostStation;
|
||||
use EasyWeChat\Factory;
|
||||
use think\facade\Config as FileConfig;
|
||||
use think\facade\Db;
|
||||
@ -242,6 +243,7 @@ class LocalStore extends Api
|
||||
$model = new LocalStoreLogic;
|
||||
$result['distance'] = round($model->distance($result['latitude'], $result['longitude'], $latitude, $longitude) / 1000, 2) . "公里";
|
||||
$result['header_image'] = FileConfig::get('aliyunoss.domain') . 'local_life_shop/' . $result['header_image'];
|
||||
$result['post_station'] = LocalStorePostStation::where(['user_id' => $this->user_id, 'lstore_id' => $id])->field('province, city, area, address, lat,lng')->select()->toArray();
|
||||
return JsonServer::success('成功获取', $result);
|
||||
}
|
||||
|
||||
|
||||
@ -13,9 +13,4 @@ class LocalStore extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id')->field('id, nickname');
|
||||
}
|
||||
|
||||
public function post_station()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user