Commit 819c7c2a authored by chenchao.deng's avatar chenchao.deng

调试1

parent 93d53736
...@@ -26,7 +26,7 @@ public class SmsUtils { ...@@ -26,7 +26,7 @@ public class SmsUtils {
*/ */
public static String sendSmsOTP(String phone) { public static String sendSmsOTP(String phone) {
String randomCode = createRandom(true, 6); String randomCode = createRandom(true, 6);
DefaultProfile profile = DefaultProfile.getProfile("default", "LTAIODPWRh6stFca", "0SBDR59HsquSDEj9CFXNt9njTs2cCv"); DefaultProfile profile = DefaultProfile.getProfile("default", "LTAI5tQ6KMaEbeFCJ1wd4Kuk", "5M5ILAkQu2wU83jcpTAeYN0sBj3JTN");
IAcsClient client = new DefaultAcsClient(profile); IAcsClient client = new DefaultAcsClient(profile);
CommonRequest request = new CommonRequest(); CommonRequest request = new CommonRequest();
...@@ -37,7 +37,7 @@ public class SmsUtils { ...@@ -37,7 +37,7 @@ public class SmsUtils {
request.setAction("SendSms"); request.setAction("SendSms");
request.putQueryParameter("SignName", "防关联浏览器"); request.putQueryParameter("SignName", "防关联浏览器");
request.putQueryParameter("PhoneNumbers", phone); request.putQueryParameter("PhoneNumbers", phone);
request.putQueryParameter("TemplateCode", "SMS_185841618"); request.putQueryParameter("TemplateCode", "SMS_174885489");
request.putQueryParameter("TemplateParam", "{\"code\":\"" + randomCode + "\"}"); request.putQueryParameter("TemplateParam", "{\"code\":\"" + randomCode + "\"}");
try { try {
CommonResponse response = client.getCommonResponse(request); CommonResponse response = client.getCommonResponse(request);
......
...@@ -5,14 +5,16 @@ spring: ...@@ -5,14 +5,16 @@ spring:
messages: messages:
basename: i18n/messages basename: i18n/messages
encoding: UTF-8 encoding: UTF-8
profiles:
active: dev
data: data:
mongodb: mongodb:
uri: mongodb://user:${MONGODB_PASSWORD}@localhost:27017/browser uri: mongodb://super:Cdex32eO9@47.119.25.86:27017/admin
mail: mail:
host: smtp.qiye.aliyun.com host: smtp.qiye.aliyun.com
port: 465 port: 465
username: info@cloudam.io username: notify@bkunyun.com
password: Edgec2018 password: iTbtfIbVmQk9iV&R
properties: properties:
mail: mail:
smtp: smtp:
...@@ -59,7 +61,7 @@ spring: ...@@ -59,7 +61,7 @@ spring:
profiles: dev profiles: dev
data: data:
mongodb: mongodb:
uri: mongodb://user:${MONGODB_PASSWORD}@localhost:27017/browser uri: mongodb://admin:123456@47.119.25.86:27017/browser
--- ---
spring: spring:
......
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