|
|
|
@ -736,24 +736,6 @@ class TestResourceController extends ThinkController
|
|
|
|
|
M('test_resource','tab_')->rollback();//回滚
|
|
|
|
|
$this->error('数据有误');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $max_quota=$this->max_quota($support['game_id'],$support['server_name']);//最大申请额度
|
|
|
|
|
// if(count($ids)>1){
|
|
|
|
|
// $map_s['game_id']=$support['game_id'];
|
|
|
|
|
// $map_s['server_name']=$support['server_name'];
|
|
|
|
|
// $map_s['id'] =['in',$ids];
|
|
|
|
|
// $count=M('support','tab_')->where($map_s)->count();
|
|
|
|
|
// $max_quota = floor($max_quota/$count);
|
|
|
|
|
// }
|
|
|
|
|
// if(I('support_num') > $max_quota){
|
|
|
|
|
// M('support','tab_')->rollback();//回滚
|
|
|
|
|
// $this->ajaxReturn(['status'=>0,'msg'=>'扶持申请额度不足,最大额度:'.$max_quota]);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// if($support['promote_id'] !=$_SESSION['onethink_home']['promote_auth']['pid'] || empty($support) ){
|
|
|
|
|
// M('test_resource','tab_')->rollback();//回滚
|
|
|
|
|
// $this->error('申请失败');
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
$data['game_id']=$support['game_id'];
|
|
|
|
|
$data['game_name']=$support['game_name'];
|
|
|
|
@ -831,7 +813,6 @@ class TestResourceController extends ThinkController
|
|
|
|
|
unset($_REQUEST['start']);unset($_REQUEST['end']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $map['promote_id']=$_SESSION['onethink_home']['promote_auth']['pid'];
|
|
|
|
|
$data=M('test_resource','tab_')->where($map)->order('id desc')->page($page,$row)->select();
|
|
|
|
|
$count=M('test_resource','tab_')->field('id')->where($map)->select();
|
|
|
|
|
$count = count($count);
|
|
|
|
|