From cc74efb36fd1f1de56b3acb2ba59d4b416eaed4f Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Tue, 19 Jan 2021 00:23:21 +0800 Subject: [PATCH] modify --- zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatGzhApiTools.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatGzhApiTools.java b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatGzhApiTools.java index 02d0c65..7c74df6 100644 --- a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatGzhApiTools.java +++ b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/WeChatGzhApiTools.java @@ -92,8 +92,8 @@ throw new GlobleException(e.getMessage()); } JSONObject json = JSONObject.fromObject(result.getDataString()); - String errmsg=json.getString("errmsg"); - if(StringUtils.isNotBlank(errmsg)){ + + if(json.has("errmsg")){ throw new GlobleException("获取返回刷新的accessToken失败"+json.toString()); }else{ String access_token = json.getString("access_token"); -- Gitblit v1.9.1