From 28eb26d68f7a2a4e6b316c3ea9f511aa143db66e Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 30 Sep 2024 16:57:18 +0800
Subject: [PATCH] 55测试环境
---
src/main/java/com/xcong/excoin/utils/mail/Sms106Send.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/utils/mail/Sms106Send.java b/src/main/java/com/xcong/excoin/utils/mail/Sms106Send.java
index 8685a35..baf97cd 100644
--- a/src/main/java/com/xcong/excoin/utils/mail/Sms106Send.java
+++ b/src/main/java/com/xcong/excoin/utils/mail/Sms106Send.java
@@ -19,8 +19,8 @@
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 = "16771";
+ private static final String ACCOUNT = "mui";
private static final String PASSWORD = "123456";
@@ -37,15 +37,17 @@
}
public static boolean sendRechargeMsg(String phone, String time, String orderNo) {
- String msg = "尊敬的用户,您的帐号于{}有一笔成功充值订单,如有疑问请联系客服,订单编号为{}";
+ 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 msg = "尊敬的用户,您的帐号于{}有一笔成功提现订单,订单编号为{}";
String content = StrUtil.format(msg, time, orderNo);
- return request(phone, content, "提现");
+ return true;
+ //return request(phone, content, "提现");
}
private static boolean request(String phone, String content, String tagName) {
@@ -64,7 +66,7 @@
param.put("telephonenumber", 0);
String response = HttpUtil.post(URL, param);
- log.info("短信发送:{}, {}", tagName, response);
+ //log.info("短信发送:{}, {}", tagName, response);
if ("Success".equals(XmlUtil.xmlToMap(response).get("returnstatus"))) {
return true;
} else {
@@ -72,7 +74,4 @@
}
}
- public static void main(String[] args) {
- System.out.println(sendVerifyCode("15773002834", "123456", 2));
- }
}
--
Gitblit v1.9.1