Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
537d7410
Commit
537d7410
authored
Mar 06, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app开发
parent
edce0a6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
common/src/main/java/com/winsun/utils/XbkUtil.java
+3
-7
No files found.
common/src/main/java/com/winsun/utils/XbkUtil.java
View file @
537d7410
package
com
.
winsun
.
utils
;
package
com
.
winsun
.
utils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.winsun.auth.core.common.model.ResponseData
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -28,21 +27,18 @@ public class XbkUtil {
...
@@ -28,21 +27,18 @@ public class XbkUtil {
mapParm
.
put
(
"eventTime"
,
tablename
);
mapParm
.
put
(
"eventTime"
,
tablename
);
String
s
=
MD5Utils
.
md5
(
tablename
+
"gzxy951753@.123"
);
String
s
=
MD5Utils
.
md5
(
tablename
+
"gzxy951753@.123"
);
mapParm
.
put
(
"sign"
,
s
.
toUpperCase
());
mapParm
.
put
(
"sign"
,
s
.
toUpperCase
());
JSONObject
jsonObject
=
httpDoPost
(
map
,
mapParm
,
type
);
return
jsonObject
;
}
public
static
JSONObject
httpDoPost
(
Map
<
String
,
Object
>
map
,
Map
<
String
,
Object
>
mapParm
,
String
type
){
mapParm
.
put
(
"param"
,
map
);
mapParm
.
put
(
"param"
,
map
);
JSONObject
json
=
new
JSONObject
(
mapParm
);
JSONObject
json
=
new
JSONObject
(
mapParm
);
JSONObject
jsonObject
=
null
;
JSONObject
jsonObject
=
null
;
try
{
jsonObject
=
HttpHelper
.
doPost
(
"http://enter.gd189.cn:9090/o2oweb/outMain/service.do"
,
json
.
toString
());
try
{
jsonObject
=
HttpHelper
.
doPost
(
"http://enter.gd189.cn:9090/o2oweb/outMain/service.do"
,
json
.
toString
());
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
info
(
type
+
"调取接口异常"
,
e
.
getMessage
());
log
.
info
(
type
+
"调取接口异常"
,
e
.
getMessage
());
}
}
return
jsonObject
;
return
jsonObject
;
}
}
/**
/**
* 小白下单接口 JT0002
* 小白下单接口 JT0002
*
*
...
...
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