|
@@ -70,7 +70,7 @@ public class WxQrcodeUtil {
|
|
JSONObject resultJsonObj = WxTemplateUtil.httpRequest(url, "POST", JSONUtil.toJsonStr(paramsMap));
|
|
JSONObject resultJsonObj = WxTemplateUtil.httpRequest(url, "POST", JSONUtil.toJsonStr(paramsMap));
|
|
|
|
|
|
log.info("产生二维码结果: [" + JSONUtil.toJsonStr(paramsMap) + "], URL: " + resultJsonObj.toString());
|
|
log.info("产生二维码结果: [" + JSONUtil.toJsonStr(paramsMap) + "], URL: " + resultJsonObj.toString());
|
|
- if (resultJsonObj != null && resultJsonObj.getInt("errcode") == 40001) {
|
|
|
|
|
|
+ if (resultJsonObj != null && resultJsonObj.getInt("errcode") != null && resultJsonObj.getInt("errcode") == 40001) {
|
|
return resultJsonObj.getStr("errcode");
|
|
return resultJsonObj.getStr("errcode");
|
|
}
|
|
}
|
|
|
|
|