/**
  * Description:跳转到会员手机认证界面<br>
  *
  * @author hujianpan
  * @version 0.1 2014年8月30日
  * @return String
  */
 @RequiresAuthentication
 @RequestMapping(value = "/toMobailCheckMemberInfo")
 public ModelAndView checkMemberInfo(HttpServletRequest request) {
   Member member = currentMember();
   if (null == member || StringUtils.isEmpty(member.getUsername())) {
     return forword(BusinessConstants.TOP_HOME_ADDRESS);
   }
   // 通过用户名查询上一步的信息
   MemberCnd memberCnd = new MemberCnd();
   memberCnd.setUsername(member.getUsername());
   MemberVo memberVo = memberService.queryMemberByCnd(memberCnd);
   // 0:正式身份 -1:游客身份
   if (null != memberVo && BusinessConstants.VISITOR_OFFICIAL == memberVo.getType()) {
     return forword(BusinessConstants.TOP_HOME_ADDRESS);
   }
   return forword("/member/register_CheckMemberByMobail");
 }
예제 #2
0
 /**
  * Description:跳转到会员邮箱和手机认证界面<br>
  *
  * @author hujianpan
  * @version 0.1 2014年8月30日
  * @param memberRegisterCnd
  * @return String
  */
 @RequestMapping(value = "/toCheckMemberInfo")
 public ModelAndView checkMemberInfo(HttpServletRequest request) {
   Member member = new Member();
   ShiroUser shiroUser = currentUser();
   member.setId(shiroUser.getUserId());
   member.setUsername(shiroUser.getUserName());
   if (null == member || StringUtils.isEmpty(member.getUsername())) {
     return redirect("/" + BusinessConstants.TOP_HOME_ADDRESS);
   }
   // 通过用户名查询上一步的信息
   MemberCnd memberCnd = new MemberCnd();
   memberCnd.setUsername(member.getUsername());
   MemberVo memberVo = memberService.queryMemberByCnd(memberCnd);
   // 0:正式身份 -1:游客身份
   if (null != memberVo && BusinessConstants.VISITOR_OFFICIAL == memberVo.getType()) {
     logger.info("当前用户已经认证通过");
     return redirect("/" + BusinessConstants.TOP_HOME_ADDRESS);
   }
   return forword("/member/register_CheckMember")
       .addObject("currentEmail", memberVo.getEmail() == null ? "" : memberVo.getEmail());
 }