From 409c13d0886117d5ee4ff42186d90b19a692b804 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 21 二月 2023 14:06:36 +0800 Subject: [PATCH] 增加品牌认证 --- AndroidOpenDemo/DeviceAddModule/src/main/java/com/mm/android/deviceaddmodule/openapi/HttpSend.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AndroidOpenDemo/DeviceAddModule/src/main/java/com/mm/android/deviceaddmodule/openapi/HttpSend.java b/AndroidOpenDemo/DeviceAddModule/src/main/java/com/mm/android/deviceaddmodule/openapi/HttpSend.java index 4508b6c..59df71c 100644 --- a/AndroidOpenDemo/DeviceAddModule/src/main/java/com/mm/android/deviceaddmodule/openapi/HttpSend.java +++ b/AndroidOpenDemo/DeviceAddModule/src/main/java/com/mm/android/deviceaddmodule/openapi/HttpSend.java @@ -53,13 +53,13 @@ } String code = jsonResult.get("code").getAsString(); if (!"0".equals(code)) { -// try { + try { String msg = jsonResult.get("msg").getAsString(); throw new BusinessException(code + msg); -// }catch (Exception exception){ -// String msg = jsonResult.get("message").getAsString(); -// throw new BusinessException(code + msg); -// } + }catch (Exception exception){ + String msg = jsonResult.get("message").getAsString(); + throw new BusinessException(code + msg); + } } JsonObject jsonData = new JsonObject(); -- Gitblit v1.8.0