作者 郭文星
... ... @@ -55,6 +55,9 @@ class Client extends Base
->field('a.*,b.address,b.name,b.phone')
->where($where)->find();
if(!empty($activity)){
$store = Db::name('verification_store')->where(['id'=>$activity['verification_store_id']])->field('lat,lng')->find();
$activity['lat'] = $store['lat'];
$activity['lng'] = $store['lng'];
$activity['image'] = !empty($activity['poster'])?request()->domain().$activity['image']:'';
$activity['poster'] = !empty($activity['poster'])?request()->domain().$activity['poster']:'';
}
... ...