zoujiajian преди 1 година
родител
ревизия
b98a4286ba

+ 4 - 9
netflix-common/src/main/java/com/cyksj/common/util/SmsUtil.java

@@ -112,16 +112,11 @@ public class SmsUtil {
     }
 
     public static Boolean sendTencent(Integer cid, String mobile, String msg) {
-//        String templateId = TENCENT_SMS_TEMPLATE_ID;
-//        if (cid != 86) {
-//            templateId = TENCENT_SMS_INTERNATIONAL_TEMPLATE_ID;
-//        }
-//        return commonSendTencentSmsMsg(templateId, cid, mobile, msg);
-        try {
-            return SmsUtil.sendLuoKey2Msg(mobile, String.format("尊敬的用户,您的验证码为%s,此验证码仅用于银河录像。【崇宇信息】", msg));
-        } catch (Exception e) {
+        String templateId = TENCENT_SMS_TEMPLATE_ID;
+        if (cid != 86) {
+            templateId = TENCENT_SMS_INTERNATIONAL_TEMPLATE_ID;
         }
-        return false;
+        return commonSendTencentSmsMsg(templateId, cid, mobile, msg);
     }
 
     public static Boolean sendAccountInternalSmsMsg(Integer cid, String mobile, String msg) {

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/user/AuthorizationController.java

@@ -446,7 +446,7 @@ public class AuthorizationController {
         badIntentionOpService.checkHandleBadUserOp(phone, verifyCode, ticket, randStr, request);
         String code = StringUtil.getRandomCodeStr(digit);
         Boolean isFlag;
-        if (false) {
+        if (!isFree) {
             isFlag = SmsUtil.sendTencent(cid, phone, code);
         } else {
             // 发送短信