|
@@ -226,13 +226,13 @@ Class Home extends Core
|
|
|
if ($data['info']['num'] <= count($code)) {
|
|
|
Dever::alert('已领完');
|
|
|
} else {
|
|
|
- $where['active_id'] = $active_id;
|
|
|
- $where['join_uid'] = $uid;
|
|
|
-
|
|
|
- $code = Dever::db('active/code')->find($where);
|
|
|
+
|
|
|
+ $code = Dever::db('active/code')->getOne(array('active_id'=>$active_id,'join_uid'=>$uid,'status'=>'1,2'));
|
|
|
if ($code) {
|
|
|
Dever::alert('您已领取过了,不可重复领取');
|
|
|
}
|
|
|
+ $where['active_id'] = $active_id;
|
|
|
+ $where['join_uid'] = $uid;
|
|
|
$where['buy_uid'] = $data['info']['uid'];
|
|
|
$where['order_id'] = $order_id;
|
|
|
$where['act_status'] = $info['act_status'];
|