苹果测试账号

master
zhanglingsheng 5 years ago
parent 95bfd89418
commit cc7b0cdd50

@ -158,7 +158,7 @@ class GameController extends BaseController{
re_msg(1004, 'fail', '用户不存在');
}
$user = M('user','tab_')->field('balance')->where(['id' => $data['user_id']])->find();
$user = M('user','tab_')->field('account,balance')->where(['id' => $data['user_id']])->find();
$user['user_token'] = $data['user_token'];
if (!$user['user_token']) {
re_msg(1004, 'fail', '数据有误');
@ -182,6 +182,15 @@ class GameController extends BaseController{
unset($menus[$k]);
continue;
}
//测试账号苹果审核
$game_user = ['test11', 'test12', 'test13', 'test142', 'test171','test830','test1003','test1002','test170','test169'];
if($data['game_id'] == 78 && in_array($user['account'], $game_user)) {
if($v['name'] == 'gift' || $v['name'] == 'suppersign') {
unset($menus[$k]);
continue;
}
}
//测试账号苹果审核
$menus[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] :
C('ADMIN_DOMAIN') . $v['icon'];
// die;
@ -230,6 +239,15 @@ class GameController extends BaseController{
unset($personalMenu[$k]);
continue;
}
//测试账号苹果审核
$game_user = ['test11', 'test12', 'test13', 'test142', 'test171','test830','test1003','test1002','test170','test169'];
if($data['game_id'] == 78 && in_array($user['account'], $game_user)) {
if($v['name'] == 'gift' || $v['name'] == 'balance') {
unset($personalMenu[$k]);
continue;
}
}
//测试账号苹果审核
$personalMenu[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] :
C('ADMIN_DOMAIN') . $v['icon'];
// die;

Loading…
Cancel
Save