正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -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']; |
-
请 注册 或 登录 后发表评论