|
|
|
@ -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 ++;
|
|
|
|
|
}
|
|
|
|
|