From bc79128a7df0333b1d13e46d4ebe61fba7e53e03 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Mon, 25 Nov 2019 21:14:38 +0800 Subject: [PATCH] =?UTF-8?q?android=20api=5Fver=202=20=E4=BB=A5=E4=B8=8A=20?= =?UTF-8?q?=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=BC=A0=E5=8F=820=E5=8E=9F?= =?UTF-8?q?=E5=8C=85=20=20=E4=B8=8D=E6=8F=90=E7=A4=BA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index 939740a4..eaaa49b0 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -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'];