|
@@ -187,6 +187,9 @@ class Collect2Logic extends BaseLogic
|
|
|
$this->responseError('已无游戏机会!', -1);
|
|
|
}
|
|
|
|
|
|
+ //消减游戏次数
|
|
|
+ $this->_useUserChance();
|
|
|
+
|
|
|
$srand = mt_rand(0,8);
|
|
|
|
|
|
if($srand == 0){
|
|
@@ -194,8 +197,7 @@ class Collect2Logic extends BaseLogic
|
|
|
$this->responseSuccess($return_data);
|
|
|
}
|
|
|
|
|
|
- //消减游戏次数
|
|
|
- $this->_useUserChance();
|
|
|
+
|
|
|
$collect_list = json_decode($this->activityinfo['collect_list'],TRUE);
|
|
|
|
|
|
$rand = 0;
|
|
@@ -228,11 +230,50 @@ class Collect2Logic extends BaseLogic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if($rand == 6){
|
|
|
+ //四号卡片每个用户顶多给一个
|
|
|
+ $where = array(
|
|
|
+ 'act_id'=>$this->act_id,
|
|
|
+ 'uid' =>$this->uid,
|
|
|
+ 'collect_id'=>4,
|
|
|
+ 'operate'=>1
|
|
|
+ );
|
|
|
+ if(M('activity_collect')->where($where)->find()){
|
|
|
+ $rand = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if($rand == 0){
|
|
|
$return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
$this->responseSuccess($return_data);
|
|
|
}
|
|
|
|
|
|
+ if($uid == 'U04599795' && $value['collect_id'] == 2){
|
|
|
+ $return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
+ $this->responseSuccess($return_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ if($uid == 'U00398811' && $value['collect_id'] == 3){
|
|
|
+ $return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
+ $this->responseSuccess($return_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ if($uid == 'U00419859' && $value['collect_id'] == 3){
|
|
|
+ $return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
+ $this->responseSuccess($return_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ if($uid == 'U00110045' && $value['collect_id'] == 7){
|
|
|
+ $return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
+ $this->responseSuccess($return_data);
|
|
|
+ }
|
|
|
+
|
|
|
+ if($uid == '0108148565841340177' && $value['collect_id'] == 7){
|
|
|
+ $return_data = ['collect_status'=>'no','collect_list'=>''];
|
|
|
+ $this->responseSuccess($return_data);
|
|
|
+ }
|
|
|
+
|
|
|
$results[] = array(
|
|
|
'collect_id'=>$value['collect_id'],
|
|
|
'collect_name'=>$value['collect_name'],
|