Example #1
0
 public Result showValidateImg(PhoneNum phoneNum, FormData fd) {
   Result r = new Result();
   if (isYiDong(phoneNum)) {
     YNYIDONG_Controller controller = (YNYIDONG_Controller) getBean(YNYIDONG_Controller.class);
     // 在map中需要有个url的key,为none是不需要验证码,否则返回验证码的链接
     Map<String, Object> map = controller.putongFirst(fd.getRequest(), controller.getLogin(fd));
     r.setForgetPassUrl(ConstantForgetPassword.ynyidong);
     setResultOld(r, map);
   } else if (isLianTong(phoneNum)) {
     SHLianTong_Controller controller =
         (SHLianTong_Controller) getBean(SHLianTong_Controller.class);
     // 在map中需要有个url的key,为none是不需要验证码,否则返回验证码的链接
     Map<String, Object> map = controller.putongFirst(fd.getRequest(), controller.getLogin(fd));
     r.setForgetPassUrl(ConstantForgetPassword.liantong);
     setResultOld(r, map);
   } else if (isDianXin(phoneNum)) {
     YunNanDianXin_Controller controller =
         (YunNanDianXin_Controller) getBean(YunNanDianXin_Controller.class);
     Map map = controller.getAuth(false, fd);
     r.setStatus(1);
     final String url = (String) map.get("url");
     r.setImgUrl(url);
     r.setForgetPassUrl(ConstantForgetPassword.yunnandianxin);
     r.setSuccess(true);
     r.setResult(true);
   }
   return r;
 }
Example #2
0
 public Result goLogin(PhoneNum phoneNum, FormData fd) {
   Result r = new Result();
   if (isYiDong(phoneNum)) {
     YNYIDONG_Controller controller = (YNYIDONG_Controller) getBean(YNYIDONG_Controller.class);
     Map<String, Object> map = controller.login(fd.getRequest(), controller.getLogin(fd));
     setResultOld(r, map);
     // 流程结束,还有下一步
     // r.setResult(false);
   } else if (isLianTong(phoneNum)) {
     SHLianTong_Controller controller =
         (SHLianTong_Controller) getBean(SHLianTong_Controller.class);
     Map<String, Object> map = controller.login(fd.getRequest(), controller.getLogin(fd));
     setResultOld(r, map);
   } else if (isDianXin(phoneNum)) {
     YunNanDianXin_Controller controller =
         (YunNanDianXin_Controller) getBean(YunNanDianXin_Controller.class);
     Map map = controller.putong_vertifyLogin(false, fd);
     setResult(r, map);
   }
   return r;
 }