码斯阁--php,thinkphp 修改代码问题, 解决问题
1.显示店铺地址,
public
detail($id.
5this->repositorv->apiGetone($id)
return·app("json')->ta1l('店铺已打烊
if.($this->request->isLogin()){app()->make(userMerchantRepository: :class)->updateLastTime($this->request->uid(), intval($id));
return app('json')->success($this->repository->detail$id, $this->userInfo));
public·functionsystemDetail()
$config=systemconfig(['site logo', 'site name ]);return app("json')->success(=>$config['site logo l,mer avatar'
避免出现未定义属性的错误一/检查。$merchantif.(!empty($merchant)){查地址不为密
if(!empty($merchant['mer address
$cityName$this->getcityCateName$merchant['mer address']);
修改·
2C
$merchant"mer address'l·=.$cityName;
$merchant->append(['type name', 'isset certificate',"'services type 1);$merchant['care"l·=.false;if.($userInfo)$merchant['care']=$this->getCareByUser($id, $userInfo->uid);
$lat'= input('lat');$lng = input('lng');if.(isset($lat,'$lng)){-$distance=getDistance($lat,$lng,$merchant->lat,$merchant->long);if.($distance'<·0.9){-$distance·=max(bcmul($distance,·1000,·0),
2.隐藏联系电话
Scan and follow us