From ed55b07e0000d99d0aeb796649077d178256fbb8 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 09 Jan 2021 17:17:08 +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