From 440af299beb5088bbf87a4bab925cc5b530a7c8e Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期六, 24 六月 2023 09:44:10 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java b/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java index cf0348c..0a3793d 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java +++ b/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java @@ -198,7 +198,14 @@ } } String numberRandom = UUIDUtil.getNumberRandom(6); - aLiSendSms.sendSms(phone, "SMS_161275250", "{\"code\":\"" + numberRandom + "\"}"); + String templateCode = ""; + if(type == 1 || type == 2){ + templateCode = "SMS_161275250"; + } + if(type == 3 || type == 4){ + templateCode = "SMS_160960014"; + } + aLiSendSms.sendSms(phone, templateCode, "{\"code\":\"" + numberRandom + "\"}"); redisUtil.setStrValue(phone, numberRandom, 300); return ResultUtil.success(); } -- Gitblit v1.7.1