Commit 45e80ae8 by 韦华德

Merge remote-tracking branch 'origin/master'

parents 7f8dde2b 85ed8cbc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment