Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
common
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
曲欣亮
common
Commits
6b2beab5
Commit
6b2beab5
authored
Jul 10, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加方法
parent
9a815612
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
312 additions
and
300 deletions
+312
-300
DateUtil.java
src/main/java/com/egolm/common/DateUtil.java
+1
-0
HttpsUtil.java
src/main/java/com/egolm/common/HttpsUtil.java
+311
-300
No files found.
src/main/java/com/egolm/common/DateUtil.java
View file @
6b2beab5
package
com
.
egolm
.
common
;
package
com
.
egolm
.
common
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
src/main/java/com/egolm/common/HttpsUtil.java
View file @
6b2beab5
...
@@ -10,6 +10,7 @@ import java.net.URL;
...
@@ -10,6 +10,7 @@ import java.net.URL;
import
java.nio.charset.Charset
;
import
java.nio.charset.Charset
;
import
java.security.KeyStore
;
import
java.security.KeyStore
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
...
@@ -225,6 +226,16 @@ public class HttpsUtil {
...
@@ -225,6 +226,16 @@ public class HttpsUtil {
}
}
}
}
}
}
/**
* 发送有参数的POST请求,参数为json格式
*/
public
static
String
doPostForJson
(
String
url
,
String
json
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
String
result
=
HttpUtil
.
post
(
url
,
json
,
map
,
null
);
return
result
;
}
/**
/**
* 调用证书进行退款 WX提供
* 调用证书进行退款 WX提供
*
*
...
...
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