Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lyf-beidou-cdp-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoupeng
lyf-beidou-cdp-api
Commits
873e3026
Commit
873e3026
authored
Sep 13, 2023
by
zhoupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交导入组织架构openapi接口
parent
bef7ae86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
QiDianServiceImpl.java
...com/rome/order/domain/service/impl/QiDianServiceImpl.java
+2
-5
No files found.
src/main/java/com/rome/order/domain/service/impl/QiDianServiceImpl.java
View file @
873e3026
...
...
@@ -17,7 +17,6 @@ import com.rome.order.domain.service.QiDianService;
import
com.rome.order.domain.util.HttpUtil
;
import
com.rome.order.domain.util.Md5Utils
;
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.remote.constant.QiDianRemoteConstant
;
import
com.rome.order.infrastructure.remote.constant.RemoteConstant
;
...
...
@@ -37,8 +36,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URLDecoder
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -102,8 +99,8 @@ public class QiDianServiceImpl implements QiDianService {
Map
<
String
,
String
>
headers
=
HttpUtil
.
getOpenApiHeaderMap
(
corporationId
,
secret
);
String
timestamp
=
headers
.
get
(
"timestamp"
);
String
sign
=
headers
.
get
(
"sign"
);
String
sign
Encode
=
URLDecoder
.
decode
(
sign
,
"UTF-8"
);
String
url
=
String
.
format
(
beidouOpenapiUrl
+
RemoteConstant
.
SSO_LOGIN_API_URL
,
code
,
consoleUrl
,
corporationId
,
timestamp
,
sign
Encode
);
String
sign
Md5
=
Md5Utils
.
string2MD5
(
sign
);
String
url
=
String
.
format
(
beidouOpenapiUrl
+
RemoteConstant
.
SSO_LOGIN_API_URL
,
code
,
consoleUrl
,
corporationId
,
timestamp
,
sign
Md5
);
log
.
info
(
"---getSSOCallback地址信息-----:{}"
,
url
);
return
url
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment