|
@@ -8,6 +8,7 @@ import com.care.client.vo.WxAccessTokenVO;
|
|
|
import com.care.common.cache.RedisKeyConstant;
|
|
|
import com.google.gson.Gson;
|
|
|
import com.google.gson.JsonSyntaxException;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
@@ -29,6 +30,7 @@ import java.util.TreeMap;
|
|
|
/**
|
|
|
* 微信接口访问工具封装
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
public class WxQrcodeUtil {
|
|
|
|
|
|
// 临时二维码
|
|
@@ -67,6 +69,8 @@ public class WxQrcodeUtil {
|
|
|
String url = GEN_QRCODE_URL.replace("ACCESS_TOKEN", accessToken);
|
|
|
JSONObject resultJsonObj = WxTemplateUtil.httpRequest(url, "POST", JSONUtil.toJsonStr(paramsMap));
|
|
|
|
|
|
+ log.info("产生二维码结果: [" + JSONUtil.toJsonStr(paramsMap) + "], URL: " + resultJsonObj.toString());
|
|
|
+
|
|
|
return resultJsonObj == null ? null : showQrcode(resultJsonObj.getStr("ticket"));
|
|
|
}
|
|
|
|