public static boolean validateCode(String key,String submitCode){
		if(submitCode==null || submitCode.length()==0)return false;
		int range = mistakeRange/2;
		int len = range*2+1;
		long now = System.currentTimeMillis();
		for(int i=0;i<len;i++){
			if(submitCode.equals(generateCode1(key,now,i-range)))
				return true;
		}
		return false;
	}