作者 chencheng

kaquana-21

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