public String buildUrl(User user, VerifyImage img){
		
		StringBuffer url = new StringBuffer();
		// TODO 这里有待修改
//		String urlV4 = this.fetionContext.getLocalSetting().getNodeText("/config/servers/ssi-app-sign-in-v2");
		LocalSetting localSetting = new LocalSetting();
		try {
			localSetting.load(user);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JDOMException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String urlV4 = localSetting.getNodeText("/config/servers/ssi-app-sign-in-v2");
		if(urlV4 == null){
			FetionConfig.init();
			urlV4 = FetionConfig.getString("server.ssi-sign-in-v2");
			
		}
		url.append(urlV4);
		url.append("?");
		
		//下面开始添加参数帐号
		
		if(user.getMobile() > 0){
			url.append("mobileno="+Long.toString(user.getMobile()));   //这里只提供了手机号，后面会扩展到飞信号的使用
		}else{
			throw new IllegalStateException("用户帐号不正确");
		}
		
		//下面添加参数domain
		
		url.append("&domains=fetion.com.cn%3bm161.com.cn%3bwww.ikuwa.cn");
		
		//下面添加加密方式和加密后的密码
		
		url.append("&v4digest-type=1");
		//url.append("&v4digest="+(PasswordEncrypterV4.encryptV4(user.getPassword())));
		url.append("&v4digest=" + PasswordEncryptor.V4Digest1(user.getPassword()));
		
		//下面添加验证码参数
		
		if(img != null){
			url.append("&pid="+img.getImageId());
			url.append("&pic="+img.getVerifyCode());
			url.append("&algorithm="+img.getAlgorithm());
		}
		
		return url.toString();
	}