From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 25 二月 2025 16:41:22 +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