From edf211029ca6b07962d1fb37a18bb184bf89acdd Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 15 Jul 2020 15:43:22 +0800 Subject: [PATCH] modify --- src/main/java/com/xcong/excoin/modules/Sms106Send.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/Sms106Send.java b/src/main/java/com/xcong/excoin/modules/Sms106Send.java index fb7f17f..3fc783a 100644 --- a/src/main/java/com/xcong/excoin/modules/Sms106Send.java +++ b/src/main/java/com/xcong/excoin/modules/Sms106Send.java @@ -10,7 +10,9 @@ import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.XmlUtil; import cn.hutool.http.HttpUtil; +import lombok.extern.slf4j.Slf4j; +@Slf4j public class Sms106Send { private static final String URL = "http://www.qf106.com/sms.aspx"; @@ -42,7 +44,9 @@ String content = StrUtil.format(msg, time, orderNo); return request(phone, content, "提现"); } - public static boolean sendWithdrawalCoinMsg(String phone, String time) { + public static boolean + + sendWithdrawalCoinMsg(String phone, String time) { String msg = "尊敬的用户,您的帐号于{}有一笔成功提现订单,如有疑问请联系客服。"; String content = StrUtil.format(msg, time); return request(phone, content, "提币"); @@ -64,6 +68,7 @@ param.put("telephonenumber", 0); String response = HttpUtil.post(URL, param); + log.info("发送短信:{}", response); if ("Success".equals(XmlUtil.xmlToMap(response).get("returnstatus"))) { return true; } else { -- Gitblit v1.9.1