android api_ver 2 以上 客户端传参0原包 不提示更新

master
tpingzhang 5 years ago
parent 3e4df08518
commit bc79128a7d

@ -2471,10 +2471,13 @@ class UserController extends BaseController
if (empty($game_source)) {
$game_source['source_version'] = 0;
}
// 客户端传参0原包 不提示更新 source_version程序版本号
if($request['source_version'] == 0) {
echo base64_encode(json_encode(array('code' => 200, 'msg' => '请求成功', 'data' => new \stdClass())));
exit();
if ((isset($request['api_ver']) && $request['api_ver'] >= 2) || $request['sdk_version'] == 2) {
// 客户端传参0原包 不提示更新 source_version程序版本号
if($request['source_version'] == 0) {
echo base64_encode(json_encode(array('code' => 200, 'msg' => '请求成功', 'data' => new \stdClass())));
exit();
}
}
$data['is_force_update'] = $game_info['is_force_update'];

Loading…
Cancel
Save