Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
cbf3a02f
Commit
cbf3a02f
authored
Sep 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c381b1d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
SolrUtil.java
src/main/java/com/egolm/shop/util/SolrUtil.java
+22
-0
No files found.
src/main/java/com/egolm/shop/util/SolrUtil.java
0 → 100644
View file @
cbf3a02f
package
com
.
egolm
.
shop
.
util
;
import
java.util.SortedMap
;
import
java.util.TreeMap
;
import
com.egolm.common.HttpUtil
;
import
com.egolm.common.MD5Util
;
public
class
SolrUtil
{
public
static
void
main
(
String
[]
args
)
{
SortedMap
<
Object
,
Object
>
parameters
=
new
TreeMap
<
Object
,
Object
>();
parameters
.
put
(
"timestamp"
,
System
.
currentTimeMillis
());
parameters
.
put
(
"langID"
,
"zh_CN"
);
parameters
.
put
(
"terminal"
,
"wechat"
);
parameters
.
put
(
"md5Key"
,
"E67720C4E7B84615D7EAF106EBC8E677"
);
String
createSign
=
MD5Util
.
createSign
(
"UTF-8"
,
parameters
);
parameters
.
put
(
"sign"
,
createSign
);
HttpUtil
.
post
(
""
)
}
}
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