Commit 873e3026 by zhoupeng

提交导入组织架构openapi接口

parent bef7ae86
...@@ -17,7 +17,6 @@ import com.rome.order.domain.service.QiDianService; ...@@ -17,7 +17,6 @@ import com.rome.order.domain.service.QiDianService;
import com.rome.order.domain.util.HttpUtil; import com.rome.order.domain.util.HttpUtil;
import com.rome.order.domain.util.Md5Utils; import com.rome.order.domain.util.Md5Utils;
import com.rome.order.domain.util.RedisService; import com.rome.order.domain.util.RedisService;
import com.rome.order.domain.util.ServletUtils;
import com.rome.order.infrastructure.dataobject.SyncOrgDO; import com.rome.order.infrastructure.dataobject.SyncOrgDO;
import com.rome.order.infrastructure.remote.constant.QiDianRemoteConstant; import com.rome.order.infrastructure.remote.constant.QiDianRemoteConstant;
import com.rome.order.infrastructure.remote.constant.RemoteConstant; import com.rome.order.infrastructure.remote.constant.RemoteConstant;
...@@ -37,8 +36,6 @@ import org.springframework.stereotype.Service; ...@@ -37,8 +36,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -102,8 +99,8 @@ public class QiDianServiceImpl implements QiDianService { ...@@ -102,8 +99,8 @@ public class QiDianServiceImpl implements QiDianService {
Map<String, String> headers = HttpUtil.getOpenApiHeaderMap(corporationId, secret); Map<String, String> headers = HttpUtil.getOpenApiHeaderMap(corporationId, secret);
String timestamp = headers.get("timestamp"); String timestamp = headers.get("timestamp");
String sign = headers.get("sign"); String sign = headers.get("sign");
String signEncode=URLDecoder.decode(sign, "UTF-8"); String signMd5= Md5Utils.string2MD5(sign);
String url = String.format(beidouOpenapiUrl+RemoteConstant.SSO_LOGIN_API_URL, code,consoleUrl,corporationId,timestamp,signEncode); String url = String.format(beidouOpenapiUrl+RemoteConstant.SSO_LOGIN_API_URL, code,consoleUrl,corporationId,timestamp,signMd5);
log.info("---getSSOCallback地址信息-----:{}",url); log.info("---getSSOCallback地址信息-----:{}",url);
return url; return url;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment