作者 chencheng

kaquana-3

@@ -55,7 +55,11 @@ class Client extends Base @@ -55,7 +55,11 @@ class Client extends Base
55 ->join('verification_store b','a.verification_store_id=b.id') 55 ->join('verification_store b','a.verification_store_id=b.id')
56 ->field('a.*,b.address,b.name,b.phone as store_phone') 56 ->field('a.*,b.address,b.name,b.phone as store_phone')
57 ->where($where)->find(); 57 ->where($where)->find();
  58 +
58 if(!empty($activity)){ 59 if(!empty($activity)){
  60 + if($activity['status'] == '1'){
  61 + $this->error('活动已关闭');
  62 + }
59 $store = Db::name('verification_store')->where(['id'=>$activity['verification_store_id']])->field('lat,lng')->find(); 63 $store = Db::name('verification_store')->where(['id'=>$activity['verification_store_id']])->field('lat,lng')->find();
60 $activity['lat'] = $store['lat']; 64 $activity['lat'] = $store['lat'];
61 $activity['lng'] = $store['lng']; 65 $activity['lng'] = $store['lng'];