作者 chencheng

kq-0620-3

@@ -270,7 +270,7 @@ class Client extends Base @@ -270,7 +270,7 @@ class Client extends Base
270 $this->error("活动不存在!"); 270 $this->error("活动不存在!");
271 } 271 }
272 //每个微信用户只能购买一次一个活动 272 //每个微信用户只能购买一次一个活动
273 - $count = Db::name('verification_order')->where(['user_id'=>$this->auth->id])->count(); 273 + $count = Db::name('verification_order')->where(['user_id'=>$this->auth->id,'paytime'=>['<>','']])->count();
274 if($count >=1){ 274 if($count >=1){
275 $this->error("该活动仅限购买1次!"); 275 $this->error("该活动仅限购买1次!");
276 } 276 }