Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
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
曲欣亮
sap-service
Commits
c26f0723
Commit
c26f0723
authored
Aug 05, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2de74f82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
TestController.java
src/main/java/com/egolm/sso/TestController.java
+8
-0
CommonService.java
src/main/java/com/egolm/sso/services/CommonService.java
+6
-0
No files found.
src/main/java/com/egolm/sso/TestController.java
View file @
c26f0723
...
...
@@ -62,4 +62,12 @@ public class TestController {
String
token
=
common
.
getToken
();
return
token
;
}
@GetMapping
(
"saveOrderTracking"
)
public
Object
saveOrderTracking
()
{
common
.
saveOrderTracking
(
"sapmaterialmaster20190804121212"
,
"MaterialMaster"
,
"123456"
,
"123456"
,
"G"
,
null
,
"操作失败"
);
return
"OK"
;
}
}
src/main/java/com/egolm/sso/services/CommonService.java
View file @
c26f0723
...
...
@@ -5,6 +5,7 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.Map
;
import
org.bouncycastle.util.encoders.Base64
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.dao.DuplicateKeyException
;
...
...
@@ -154,4 +155,9 @@ public class CommonService {
super
(
msg
);
}
}
public
static
void
main
(
String
[]
args
)
{
String
string
=
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlSWRzIjpbIjM1YmY2NmI4LWQ2NzQtNDNkNy1iNjc3LTc0N2QwMWJhNDZiMyJdLCJ1c2VyX25hbWUiOiJ0cmFuY2UiLCJzY29wZSI6WyJDTElFTlQiXSwiZXhwaXJhdGlvbiI6MTU2NTAwODQ2ODA2NCwiZXhwIjoxNTY1MDA4NDY4LCJhdXRob3JpdGllcyI6WyJ0cmFuY2UiXSwianRpIjoiNGFmMjlhZTItZWJhYy00ZTg5LWExZDAtODUyYWEwZDhkNWM2IiwiY2xpZW50X2lkIjoicGMifQ.cCaEDqpB-yZQp-zmjYAv2igS1IdsjZVd-OT0EOfvdt4"
;
System
.
out
.
println
(
new
String
(
Base64
.
decode
(
string
)));
}
}
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