Commits

Ning Sun committed 5de0663

fix merge error

Comments (0)

Files changed (2)

 	<groupId>com.classicning</groupId>
 	<artifactId>yan</artifactId>
 	<packaging>war</packaging>
-	<version>0.4-SNAPSHOT</version>
+	<version>0.4</version>
 	<name>Yan</name>
 	<url>http://www.classicning.com</url>
 

src/main/java/com/classicning/yan/providers/colored/ColoredImageHandler.java

         return m.group(1);
     }
 
-    @Override
-	public String toCacheId(CaptchaInfo model) {
-		Properties props = model.getConfig();
-		String captchaCode = model.getCode();
-
-		String widthAsString = props.getProperty("width", GlobalConfiguration
-				.get("yan.defaultImageWidth"));
-		String heightAsString = props.getProperty("height", GlobalConfiguration
-				.get("yan.defaultImageHeight"));
-		String levelAsString = props.getProperty("level", "2");
-		String bgColorAsString = props.getProperty("bgcolor", "0xFFFFFF")
-				.substring(2);
-
-        String frColorAsString = this.mainColorName;
-
-		StringBuffer sb = new StringBuffer();
-		sb.append(captchaCode);
-		sb.append("-");
-		sb.append(widthAsString);
-		sb.append("-");
-		sb.append(heightAsString);
-		sb.append("-");
-		sb.append(levelAsString);
-		sb.append("-");
-		sb.append(bgColorAsString);
-        sb.append("-");
-        sb.append(frColorAsString);
-
-		return sb.toString();
-	}
-
 }