From 48609f16689a3d2460e2800562f95c699e6e2ef9 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 02 Nov 2020 15:35:38 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/Sms106Send.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 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..ad26ff1 100644
--- a/src/main/java/com/xcong/excoin/modules/Sms106Send.java
+++ b/src/main/java/com/xcong/excoin/modules/Sms106Send.java
@@ -10,12 +10,14 @@
 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";
-    private static final String ID = "16580";
-    private static final String ACCOUNT = "Biue";
+    private static final String ID = "16619";
+    private static final String ACCOUNT = "pilot";
     private static final String PASSWORD = "123456";
 
 
@@ -34,18 +36,21 @@
     public static boolean sendRechargeMsg(String phone, String time, String orderNo) {
         String msg = "尊敬的用户,您的帐号于{}有一笔成功充值订单,如有疑问请联系客服,订单编号为{}";
         String content = StrUtil.format(msg, time, orderNo);
-        return request(phone, content, "充值");
+        return true;
+        //return request(phone, content, "充值");
     }
 
     public static boolean sendWithdrawalMsg(String phone, String time, String orderNo) {
         String msg = "尊敬的用户,您的帐号于{}有一笔成功提现订单,如有疑问请联系客服,订单编号为{}";
         String content = StrUtil.format(msg, time, orderNo);
-        return request(phone, content, "提现");
+        return true;
+       // return request(phone, content, "提现");
     }
     public static boolean sendWithdrawalCoinMsg(String phone, String time) {
     	String msg = "尊敬的用户,您的帐号于{}有一笔成功提现订单,如有疑问请联系客服。";
     	String content = StrUtil.format(msg, time);
-    	return request(phone, content, "提币");
+    	//return request(phone, content, "提币");
+        return true;
     }
 
     private static boolean request(String phone, String content, String tagName) {
@@ -64,6 +69,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