Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
wangqi
dd_school
Commits
715a8267
Commit
715a8267
authored
Aug 25, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#G:修改测试域名
parent
b9162759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
smart-campus/src/main/java/yangtz/cs/liu/campus/util/VxTemlateSendApi.java
+4
-3
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/util/VxTemlateSendApi.java
View file @
715a8267
...
@@ -23,7 +23,7 @@ public class VxTemlateSendApi {
...
@@ -23,7 +23,7 @@ public class VxTemlateSendApi {
/**
/**
* 测试环境路径
* 测试环境路径
*/
*/
private
static
String
url
=
"http://
urgb7d
.natappfree.cc/houduan/vx/temlateses/sendTemlate"
;
private
static
String
url
=
"http://
xrwpuc
.natappfree.cc/houduan/vx/temlateses/sendTemlate"
;
/**
/**
* 签名key
* 签名key
...
@@ -44,13 +44,14 @@ public class VxTemlateSendApi {
...
@@ -44,13 +44,14 @@ public class VxTemlateSendApi {
* @return
* @return
*/
*/
public
static
String
sendVxTemlate
(
Map
<
String
,
Object
>
map
){
public
static
String
sendVxTemlate
(
Map
<
String
,
Object
>
map
){
long
timestamp
=
System
.
currentTimeMillis
();
CheckUtil
checkUtil
=
new
CheckUtil
(
ticketSecrets
);
CheckUtil
checkUtil
=
new
CheckUtil
(
ticketSecrets
);
checkUtil
.
setMap
(
map
);
checkUtil
.
setMap
(
map
);
checkUtil
.
setValue
(
"timeStamp"
,
new
Date
().
getTime
()/
1000
);
checkUtil
.
setValue
(
"timeStamp"
,
timestamp
);
VerificationCodeParam
verificationCodeParam
=
new
VerificationCodeParam
();
VerificationCodeParam
verificationCodeParam
=
new
VerificationCodeParam
();
verificationCodeParam
.
setSign
(
checkUtil
.
makeSign
());
verificationCodeParam
.
setSign
(
checkUtil
.
makeSign
());
verificationCodeParam
.
setMap
(
map
);
verificationCodeParam
.
setMap
(
map
);
verificationCodeParam
.
setTimeStamp
(
Long
.
valueOf
(
new
Date
().
getTime
()/
1000
)
);
verificationCodeParam
.
setTimeStamp
(
timestamp
);
String
jsonString
=
JSON
.
toJSONString
(
verificationCodeParam
);
String
jsonString
=
JSON
.
toJSONString
(
verificationCodeParam
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jsonString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
jsonString
);
String
post
=
HttpUtils
.
sendJsonPost
(
url
,
jsonObject
);
String
post
=
HttpUtils
.
sendJsonPost
(
url
,
jsonObject
);
...
...
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