plf 4 سال پیش
والد
کامیت
3e5ab105b5
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/main/java/com/caimei/www/service/page/impl/DocumentAuthServiceImpl.java

+ 2 - 2
src/main/java/com/caimei/www/service/page/impl/DocumentAuthServiceImpl.java

@@ -90,8 +90,8 @@ public class DocumentAuthServiceImpl implements DocumentAuthService {
         //手机验证码,30分钟有效
         redisService.set(mobile + ":mobileCode", mobileCode, 30 * 60L);
         String content = "采美资料库访问授权验证码:" + mobileCode + ",30分钟内有效";
-        log.info("采美资料库访问授权验证码>>>>>" + mobileCode);
         if (!StringUtils.isEmpty(code) && code.equals(imgCode)) {
+            log.info("采美资料库访问授权验证码>>>>>" + mobileCode);
             boolean sms = SMSUtils.sendSms(mobile, content);
             if (sms) {
                 return Mono.just(JsonModel.success());
@@ -123,7 +123,7 @@ public class DocumentAuthServiceImpl implements DocumentAuthService {
                 headers.add("Set-Cookie", cookie);
                 return new ResponseEntity<>(JsonModel.success(), headers, HttpStatus.OK);
             } else {
-                return new ResponseEntity<>(JsonModel.error(-2, "登录失败"), headers, HttpStatus.OK);
+                return new ResponseEntity<>(JsonModel.error(-2, "登录失败,您可能没有查看资料的权限"), headers, HttpStatus.OK);
             }
         } else {
             return new ResponseEntity<>(JsonModel.error("短信验证码不正确"), headers, HttpStatus.OK);