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