From ae2294be876ac4595d7b31b36c0057726d12354f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 14 五月 2021 16:11:16 +0800
Subject: [PATCH] 淘宝券后价计算方法名称修改
---
fanli/src/main/java/com/yeshi/fanli/util/TencentSMSUtil.java | 90 ++++++++++++++++++++++----------------------
1 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/util/TencentSMSUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/TencentSMSUtil.java
index 0145e47..d9a12a0 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/TencentSMSUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/TencentSMSUtil.java
@@ -1,45 +1,45 @@
-package com.yeshi.fanli.util;
-
-import java.io.IOException;
-
-import org.json.JSONException;
-
-import com.github.qcloudsms.SmsSingleSender;
-import com.github.qcloudsms.SmsSingleSenderResult;
-import com.github.qcloudsms.httpclient.HTTPException;
-import com.yeshi.fanli.exception.config.SMSException;
-
-//鑵捐鐭俊鍙戦��
-public class TencentSMSUtil {
-
- /**
- * 鍙戦�佸崟涓�鐭俊
- *
- * @param phone
- * @param msg
- */
- public static void sendSingleMsg( String phone, String msg) throws SMSException {
- SmsSingleSender ssender = new SmsSingleSender(Integer.parseInt(Constant.smsConfig.getSmsAppId()),
- Constant.smsConfig.getSmsAppKey());
- SmsSingleSenderResult result = null;
- try {
- result = ssender.send(0, "86", phone, msg, "", "");
- } catch (JSONException e) {
- e.printStackTrace();
- } catch (HTTPException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
-
- if (result == null)
- throw new SMSException(2, "鐭俊鍙戦�佸け璐�");
- if (result.result == 1025) {
- throw new SMSException(result.result, "浠婃棩楠岃瘉鐮佸彂閫佽秴闄愶紝璇锋槑鏃ュ啀璇�");
- } else if (result.result != 0) {// 鍙戦�佸け璐�
- throw new SMSException(result.result, "鐭俊鍙戦�佸け璐�");
- }
-
- }
-
-}
+package com.yeshi.fanli.util;
+
+import java.io.IOException;
+
+import org.json.JSONException;
+
+import com.github.qcloudsms.SmsSingleSender;
+import com.github.qcloudsms.SmsSingleSenderResult;
+import com.github.qcloudsms.httpclient.HTTPException;
+import com.yeshi.fanli.exception.config.SMSException;
+
+//鑵捐鐭俊鍙戦��
+public class TencentSMSUtil {
+
+ /**
+ * 鍙戦�佸崟涓�鐭俊
+ *
+ * @param phone
+ * @param msg
+ */
+ public static void sendSingleMsg( String phone, String msg) throws SMSException {
+ SmsSingleSender ssender = new SmsSingleSender(Integer.parseInt(Constant.smsConfig.getSmsAppId()),
+ Constant.smsConfig.getSmsAppKey());
+ SmsSingleSenderResult result = null;
+ try {
+ result = ssender.send(0, "86", phone, msg, "", "");
+ } catch (JSONException e) {
+ e.printStackTrace();
+ } catch (HTTPException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ if (result == null)
+ throw new SMSException(2, "鐭俊鍙戦�佸け璐�");
+ if (result.result == 1025) {
+ throw new SMSException(result.result, "浠婃棩楠岃瘉鐮佸彂閫佽秴闄愶紝璇锋槑鏃ュ啀璇�");
+ } else if (result.result != 0) {// 鍙戦�佸け璐�
+ throw new SMSException(result.result, "鐭俊鍙戦�佸け璐�");
+ }
+
+ }
+
+}
--
Gitblit v1.8.0