Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jd-activity
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
曾水平
jd-activity
Commits
232d5ecc
Commit
232d5ecc
authored
Aug 10, 2022
by
陈孝伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
免登调整
parent
d2239f72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
Open2LankouController.java
...om/duiba/jdactivity/controller/Open2LankouController.java
+12
-3
No files found.
src/main/java/cn/com/duiba/jdactivity/controller/Open2LankouController.java
View file @
232d5ecc
...
...
@@ -64,11 +64,11 @@ public class Open2LankouController {
env
=
""
;
}
env
=
env
.
toLowerCase
();
String
path
=
"/a
utoLogin/autologin
"
;
String
path
=
"/a
ctivity/common/api/autoLogin.login/
"
;
String
host
;
switch
(
env
)
{
case
"dev"
:
host
=
"http://
activity.m.duibadev.com.cn
"
;
host
=
"http://
localhost:8181
"
;
break
;
case
"test"
:
host
=
"http://activity.m.duibatest.com.cn"
;
...
...
@@ -262,7 +262,16 @@ public class Open2LankouController {
}
String
autoUrl
=
getAutologinHome
(
env
);
return
tool
.
buildUrlWithSign
(
autoUrl
,
params
);
String
url
=
tool
.
buildUrlWithSign
(
autoUrl
,
params
);
String
param
=
url
.
substring
(
url
.
indexOf
(
"?"
)
+
1
,
url
.
length
()
-
1
);
String
json
=
paramJson
(
param
);
return
autoUrl
+
"?data="
+
URLEncoder
.
encode
(
json
,
"UTF-8"
);
}
public
static
String
paramJson
(
String
paramIn
)
{
paramIn
=
paramIn
.
replaceAll
(
"="
,
"\":\""
);
paramIn
=
paramIn
.
replaceAll
(
"&"
,
"\",\""
);
return
"{\""
+
paramIn
+
"\"}"
;
}
private
void
getDcustom
(
Map
<
String
,
String
>
dcustomParam
,
Map
<
String
,
String
>
autoLoginParam
)
{
...
...
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