From 0f2202dfcea3309c1b0e7515f6db5fbdc83d51d1 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期五, 07 一月 2022 11:06:51 +0800
Subject: [PATCH] 违章记录
---
xboot-core/src/main/java/cn/exrick/xboot/core/common/sms/SmsFactory.java | 84 +++++++++++++++++++++---------------------
1 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/xboot-core/src/main/java/cn/exrick/xboot/core/common/sms/SmsFactory.java b/xboot-core/src/main/java/cn/exrick/xboot/core/common/sms/SmsFactory.java
index 43342d8..4e1744d 100644
--- a/xboot-core/src/main/java/cn/exrick/xboot/core/common/sms/SmsFactory.java
+++ b/xboot-core/src/main/java/cn/exrick/xboot/core/common/sms/SmsFactory.java
@@ -1,42 +1,42 @@
-package cn.exrick.xboot.core.common.sms;
-
-import cn.exrick.xboot.core.common.constant.SettingConstant;
-import cn.exrick.xboot.core.common.exception.XbootException;
-import cn.exrick.xboot.core.entity.Setting;
-import cn.exrick.xboot.core.service.SettingService;
-import cn.hutool.core.util.StrUtil;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-/**
- * 宸ュ巶妯″紡
- * @author Exrick
- */
-@Component
-public class SmsFactory {
-
- @Autowired
- private SettingService settingService;
-
- @Autowired
- private AliSms aliSms;
-
- @Autowired
- private TencentSms tencentSms;
-
- public Sms getSms() {
-
- Setting setting = settingService.get(SettingConstant.SMS_USED);
- if (setting == null || StrUtil.isBlank(setting.getValue())) {
- throw new XbootException("鎮ㄨ繕鏈厤缃甇SS瀛樺偍鏈嶅姟");
- }
- String type = setting.getValue();
- if (type.equals(SettingConstant.ALI_SMS)) {
- return aliSms;
- } else if (type.equals(SettingConstant.TENCENT_SMS)) {
- return tencentSms;
- } else {
- throw new XbootException("鏆備笉鏀寔璇ュ瓨鍌ㄩ厤缃紝璇锋鏌ラ厤缃�");
- }
- }
-}
+//package cn.exrick.xboot.core.common.sms;
+//
+//import cn.exrick.xboot.core.common.constant.SettingConstant;
+//import cn.exrick.xboot.core.common.exception.XbootException;
+//import cn.exrick.xboot.core.entity.Setting;
+//import cn.exrick.xboot.core.service.SettingService;
+//import cn.hutool.core.util.StrUtil;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.stereotype.Component;
+//
+///**
+// * 宸ュ巶妯″紡
+// * @author Exrick
+// */
+//@Component
+//public class SmsFactory {
+//
+// @Autowired
+// private SettingService settingService;
+//
+// @Autowired
+// private AliSms aliSms;
+//
+// @Autowired
+// private TencentSms tencentSms;
+//
+// public Sms getSms() {
+//
+// Setting setting = settingService.get(SettingConstant.SMS_USED);
+// if (setting == null || StrUtil.isBlank(setting.getValue())) {
+// throw new XbootException("鎮ㄨ繕鏈厤缃甇SS瀛樺偍鏈嶅姟");
+// }
+// String type = setting.getValue();
+// if (type.equals(SettingConstant.ALI_SMS)) {
+// return aliSms;
+// } else if (type.equals(SettingConstant.TENCENT_SMS)) {
+// return tencentSms;
+// } else {
+// throw new XbootException("鏆備笉鏀寔璇ュ瓨鍌ㄩ厤缃紝璇锋鏌ラ厤缃�");
+// }
+// }
+//}
--
Gitblit v1.9.1