Parcourir la source

合并0112分支

yousongbo il y a 20 heures
Parent
commit
87a5d0cb99

+ 5 - 0
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/service/impl/EsignOrganRealVerifyServiceImpl.java

@@ -1,12 +1,14 @@
 package com.dgtly.wxportal.service.impl;
 
 import com.alibaba.fastjson.JSONObject;
+import com.dgtly.common.annotation.Log;
 import com.dgtly.system.domain.ConfigParams;
 import com.dgtly.system.domain.ContextInfo;
 import com.dgtly.wxportal.config.ESignConfig;
 import com.dgtly.wxportal.service.IEsignOrganRealVerifyService;
 import com.dgtly.wxportal.utils.ESign.ESignHttpUtil;
 import com.dgtly.wxportal.utils.ESign.ESignUrl;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
@@ -15,6 +17,7 @@ import org.springframework.stereotype.Service;
  * @author:qxm
  * @date:2020/10/12 16:08
  */
+@Slf4j
 @Service
 public class EsignOrganRealVerifyServiceImpl implements IEsignOrganRealVerifyService {
 
@@ -32,7 +35,9 @@ public class EsignOrganRealVerifyServiceImpl implements IEsignOrganRealVerifySer
     @Override
     public String organRealVerify(String accountId, String agentAccountId,String redirectUrl) {
         JSONObject json = buildParam(accountId,agentAccountId,redirectUrl);
+        log.info("开始调用E请求参数{}", json);
         JSONObject jsonObject = eSignHttpUtil.doPostGetJson(ESignUrl.OrgIdentityUrl, json, accountId);
+        log.info("E返回结果{}", jsonObject);
         JSONObject result = (JSONObject)jsonObject.get("data");
         return result.get("shortLink").toString();
     }

+ 2 - 0
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/utils/ESign/ESignHttpUtil.java

@@ -33,7 +33,9 @@ public class ESignHttpUtil {
      */
     public JSONObject doPostGetJson(ESignUrl eurl, JSONObject param,String ...querys){
         String url = eSignConfig.getUrl(eurl,querys);
+        log.info("开始调用E请求地址:{}", url);
         String str = doPost(url,param.toJSONString());
+        log.info("调用E请求地址返回结果:{}", str);
         JSONObject json =JSONObject.parseObject(str);
         int code = json.getInteger("code");
         if(code==30500156) {