Helius
2020-07-15 edf211029ca6b07962d1fb37a18bb184bf89acdd
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 {