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

优化超级签售空提醒
master
廖金灵 5 years ago committed by Gogs
commit 5af865cf48

@ -689,15 +689,18 @@ class SsgController extends BaseController {
'limit' => $i,
)); // @todo: 并发授权码已分配的情况
$code = $list['data']['list'][$i-1]['code'];
$codeExists = M('game_supersign', 'tab_')->field('id')->where(array(
'ticket' => $code,
))->find();
if (!$codeExists) {
break;
if($code){
$codeExists = M('game_supersign', 'tab_')->field('id')->where(array(
'ticket' => $code,
))->find();
if (!$codeExists) {
break;
}
}else{
$this->assign("error","超级签已售罄~");
}
$i ++;
}
$game = M('game', 'tab_')->where(array(
'id' => $gameId,
))->find();

Loading…
Cancel
Save