Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
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
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
马博
test-platform
Commits
38101db6
Commit
38101db6
authored
Dec 18, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
a6f5d428
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Authorization.java
src/test/java/http/service/Authorization.java
+3
-3
No files found.
src/test/java/http/service/Authorization.java
View file @
38101db6
...
...
@@ -317,7 +317,7 @@ public class Authorization {
Map
<
String
,
String
>
map
=
response
.
getCookies
();
logger
.
info
(
"cookies:"
+
map
.
toString
());
hdCookies
=
new
HashMap
<>(
response
.
getCookies
());
if
(
hdCookies
!=
null
||
hdCookies
.
size
()!=
0
)
{
if
(
hdCookies
!=
null
&&
hdCookies
.
size
()!=
0
)
{
//取消安全校验
hdCookies
.
remove
(
"csrf_token"
);
hdCookies
.
put
(
"appId"
,
appId
);
...
...
@@ -347,7 +347,7 @@ public class Authorization {
paras
.
put
(
"isAutoLogin"
,
"true"
);
Response
response
=
given
().
cookies
(
cookies
).
params
(
paras
).
post
(
url
);
hdCookies
=
new
HashMap
<>(
response
.
getCookies
());
if
(
hdCookies
!=
null
||
hdCookies
.
size
()!=
0
){
if
(
hdCookies
!=
null
&&
hdCookies
.
size
()!=
0
){
hdCookies
.
remove
(
"csrf_token"
);
hdCookiesCommon
.
put
(
email
,
hdCookies
);
}
...
...
@@ -377,7 +377,7 @@ public class Authorization {
Response
response
=
given
().
cookies
(
cookies
).
params
(
paras
).
post
(
url
);
response
.
prettyPrint
();
hdCookies
=
new
HashMap
<>(
response
.
getCookies
());
if
(
hdCookies
!=
null
||
hdCookies
.
size
()!=
0
){
if
(
hdCookies
!=
null
&&
hdCookies
.
size
()!=
0
){
hdCookies
.
remove
(
"csrf_token"
);
hdCookiesCommon
.
put
(
account
,
hdCookies
);
}
...
...
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