Browse Source

缩小验证码图片

gaodm 6 years ago
parent
commit
0576fe70ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      user-service/src/main/java/com/diagbot/util/VerifyCodeUtils.java

+ 1 - 1
user-service/src/main/java/com/diagbot/util/VerifyCodeUtils.java

@@ -266,7 +266,7 @@ public class VerifyCodeUtils {
      */
     public static Object[] createImage(){
         try{
-            int w = 200, h = 80;
+            int w = 80, h = 32;
             String verifyCode = generateVerifyCode(4);//生成四位随机码
             ByteArrayOutputStream bos = new ByteArrayOutputStream();
             outputImage(w, h, bos, verifyCode);