|
|
@@ -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();
|
|
|
}
|