/**
  * 重置时验证原密码
  *
  * @return
  */
 public String androidAjaxLogin() {
   HttpServletRequest request = getRequest();
   HttpServletResponse response = getResponse();
   AppUser user = appUserService.login(userid, password);
   Map<String, Object> map = new HashMap<String, Object>();
   if (user != null) {
     map.put("state", 1); // 1 成功 0 失败
   } else {
     map.put("state", 0); // 1 成功 0 失败
   }
   AjaxResponseUtil.returnData(request, response, "", map);
   return null;
 }
 public String getLatestVersion() {
   HttpServletRequest request = getRequest();
   HttpServletResponse response = getResponse();
   Version versionLast = versionService.getLatestVersion(clientType);
   Map<String, Object> map = new HashMap<String, Object>();
   if (versionLast != null && versionLast.getVersion() > version) {
     map.put("url", versionLast.getUrl());
     map.put("version", versionLast.getVersion());
     map.put("name", versionLast.getName());
     map.put("content", versionLast.getContent());
     map.put("upgradeType", versionLast.getUpgradeType());
   }
   AjaxResponseUtil.returnData(request, response, "", map);
   return null;
 }