优化超级签code获取情况

master
chenzhi 5 years ago
parent 887e7c891e
commit a6a177ca0e

@ -672,8 +672,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(

Loading…
Cancel
Save