浏览代码

修改密码接收短信失败bugfix

JiangChongBo 2 年之前
父节点
当前提交
af30231628
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/caimei/service/auth/impl/ShopServiceImpl.java

+ 1 - 1
src/main/java/com/caimei/service/auth/impl/ShopServiceImpl.java

@@ -307,7 +307,7 @@ public class ShopServiceImpl implements ShopService {
         }
         String verifyCode = "prod".equals(active) ? CodeUtil.generateCodeInt(6) : "666666";;
         String content = "您的短信验证码为:" + verifyCode + ",该验证码 5 分钟内有效,请勿泄漏于他人。";
-        Boolean sendSms = SmsUtils.sendSms(null, mobile, content);
+        Boolean sendSms = SmsUtils.sendSms(1, mobile, content);
         if (!sendSms) {
             log.info("短信验证码发送失败,手机号:" + mobile);
             return ResponseJson.error("发送失败,请确认手机号无误");