Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
civil-bigdata
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
civil
civil-bigdata
Commits
bc4e4e8d
Commit
bc4e4e8d
authored
Dec 22, 2021
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-发送短信输出debug日志
parent
5995a212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sys-server/src/main/java/com/zq/system/utils/MobileSmsUtils.java
+3
-2
No files found.
sys-server/src/main/java/com/zq/system/utils/MobileSmsUtils.java
View file @
bc4e4e8d
...
...
@@ -2,6 +2,7 @@ package com.zq.system.utils;
import
com.alibaba.fastjson.JSON
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.binary.Base64
;
import
org.springframework.util.DigestUtils
;
...
...
@@ -13,6 +14,7 @@ import java.net.URL;
import
java.net.URLConnection
;
import
java.nio.charset.StandardCharsets
;
@Slf4j
public
class
MobileSmsUtils
{
/**
...
...
@@ -70,10 +72,9 @@ public class MobileSmsUtils {
// BASE64编码
String
encode
=
Base64
.
encodeBase64String
(
reqText
.
getBytes
(
StandardCharsets
.
UTF_8
));
// System.out.println(encode);
String
resStr
=
sendPost
(
url
,
encode
);
// System.out.println("发送短信结果:" +
resStr);
log
.
debug
(
"发送短信结果:{}"
,
resStr
);
SendRes
sendRes
=
JSON
.
parseObject
(
resStr
,
SendRes
.
class
);
...
...
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