Merge branch 'fix/member_user_info' of wmtx/platform into release

优化超级签code获取情况
master
廖金灵 5 years ago committed by Gogs
commit 830f1485e9

@ -686,8 +686,14 @@ class SsgController extends BaseController {
// 获取授权码
$list = $ipa365->ticketList(array(
'token' => $token,
'status'=>0,//未使用是0
'limit' => $i,
)); // @todo: 并发授权码已分配的情况
if($list['errno'] != 0){
$this->assign("error","超级签获取失败~{$list['errmsg']}");
$this->display('blank');
exit();
}
$code = $list['data']['list'][$i-1]['code'];
if($code){
$codeExists = M('game_supersign', 'tab_')->field('id')->where(array(
@ -698,6 +704,8 @@ class SsgController extends BaseController {
}
}else{
$this->assign("error","超级签已售罄~");
$this->display('blank');
exit();
}
$i ++;
}

Loading…
Cancel
Save