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

调试1

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