管理后台测试资源bug修正

master
zyx 5 years ago
parent 5c435bad74
commit 96effb3525

@ -213,7 +213,7 @@ class TestResourceController extends ThinkController
$addData = [];
$k = 0;
foreach($arrUserId as $key => $value) {
if (in_array($value['id'],$upsetData)) {
if (in_array($value,$upsetData)) {
continue;
} else {
$addData[$k]['log_id'] = $value;
@ -533,10 +533,10 @@ class TestResourceController extends ThinkController
// $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('申请失败');
}
// 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'];

Loading…
Cancel
Save