Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7acc816f
authored
Jul 28, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化saas链接
1 parent
d6915518
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
7acc816
...
@@ -48,6 +48,9 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -48,6 +48,9 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
@Value
(
"${SaaS.ak}"
)
@Value
(
"${SaaS.ak}"
)
String
ak
;
String
ak
;
@Value
(
"${SaaS.url}"
)
String
url
;
@Override
@Override
public
Result
<?>
businessServerBlocks
(
String
levelType
,
String
levelValue
,
long
page
,
long
size
,
String
layerId
,
String
teamId
)
{
public
Result
<?>
businessServerBlocks
(
String
levelType
,
String
levelValue
,
long
page
,
long
size
,
String
layerId
,
String
teamId
)
{
BusinessServerBlocksRespDTO
resp
=
new
BusinessServerBlocksRespDTO
();
BusinessServerBlocksRespDTO
resp
=
new
BusinessServerBlocksRespDTO
();
...
@@ -195,9 +198,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -195,9 +198,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
if
(
block
==
null
)
{
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
throw
new
BusinessException
(
"区块不存在"
);
}
}
// 跳转规则: TODO
// TODO 根据当前block转换成分部,再转换成对应账号信息
String
userAccount
=
"sMvf3yZWA69lKcvlgKcOHQ=="
;
String
password
=
"qjOHxpQPXLnJP+Jq1CZGBQ=="
;
// 跳转SaaS url
HashMap
<
String
,
String
>
res
=
new
HashMap
<>();
HashMap
<
String
,
String
>
res
=
new
HashMap
<>();
res
.
put
(
"url"
,
"https://pea-test.bshg.com.cn/mlAutoLogin?userAccount=WVyjhzcOeIUc5rl74hdaqw==&password=qjOHxpQPXLnJP+Jq1CZGBQ==&jump=basedata&navHidden=true"
);
res
.
put
(
"url"
,
url
+
"/mlAutoLogin?userAccount="
+
userAccount
+
"&password="
+
password
+
"&jump=basedata&navHidden=true&layerId="
+
block
.
getLayerId
()
+
"&areaId="
+
block
.
getBlockId
());
return
Result
.
success
(
res
);
return
Result
.
success
(
res
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment