|
|
@@ -180,17 +180,16 @@ public class BaseController {
|
|
|
request.getSession().setAttribute("code", code);
|
|
|
|
|
|
// 手机短信
|
|
|
- /// 测试不发送短信
|
|
|
-// try {
|
|
|
-// if (!StringUtils.isEmpty(mobile)) {
|
|
|
-// Setting smsTplId = settingService.findOne("templateForSendSmsAboutValidAllCode");
|
|
|
-// if (!StringUtils.isEmpty(smsTplId)) {
|
|
|
-// smsService.send(smsTplId.getValue(), mobile, new Object[]{code});
|
|
|
-// }
|
|
|
-// }
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
+ try {
|
|
|
+ if (!StringUtils.isEmpty(mobile)) {
|
|
|
+ Setting smsTplId = settingService.findOne("templateForSendSmsAboutValidAllCode");
|
|
|
+ if (!StringUtils.isEmpty(smsTplId)) {
|
|
|
+ smsService.send(smsTplId.getValue(), mobile, new Object[]{code});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
|
|
|
// 邮件
|
|
|
try {
|