@Override
  public AccessToken getBindingAccessToken(Long userid, ProfileType profile) {

    Map<String, String> param = weiboDao.getWeiboProType(userid, ProfileType.ALIPAYCONFIG);
    AlipayModel alipayModel = new AlipayModel();
    if (param != null && param.size() > 0) {

      String user_id = param.get("alipay_user_id");
      String real_name = param.get("alipay_screenName");
      String sign = param.get("alipay_sign");
      String token = param.get("alipay_token");
      String notify_id = param.get("alipay_notify_id");
      String email = param.get("alipay_email");

      if (StringUtils.isNotEmpty(user_id)) {
        alipayModel.setUser_id(user_id);
      }
      if (StringUtils.isNotEmpty(real_name)) {
        alipayModel.setReal_name(real_name);
      }
      if (StringUtils.isNotEmpty(sign)) {
        alipayModel.setSign(sign);
      }
      if (StringUtils.isNotEmpty(token)) {
        alipayModel.setToken(token);
      }
      if (StringUtils.isNotEmpty(notify_id)) {
        alipayModel.setNotify_id(notify_id);
      }
      if (StringUtils.isNotEmpty(email)) {
        alipayModel.setNotify_id(email);
      }
    }
    return alipayModel;
  }
  @Override
  public void addBindingAccess(Long userid, AccessToken accessToken, ProfileType profile) {

    AlipayModel alipayModel = (AlipayModel) accessToken;
    String user_id = alipayModel.getUser_id();
    String real_name = alipayModel.getReal_name();
    String sign = alipayModel.getSign();
    String token = alipayModel.getToken();
    String notify_id = alipayModel.getNotify_id();
    String email = alipayModel.getEmail();

    Map<String, String> param = new HashMap<String, String>();
    if (StringUtils.isNotEmpty(user_id)) {
      param.put("alipay_user_id", user_id);
    }
    if (StringUtils.isNotEmpty(real_name)) {
      param.put("alipay_screenName", real_name);
    }
    if (StringUtils.isNotEmpty(sign)) {
      param.put("alipay_sign", sign);
    }
    if (StringUtils.isNotEmpty(token)) {
      param.put("alipay_token", token);
    }
    if (StringUtils.isNotEmpty(notify_id)) {
      param.put("alipay_notify_id", notify_id);
    }
    if (StringUtils.isNotEmpty(email)) {
      param.put("alipay_email", email);
    }
    weiboDao.addWeiboProType(param, userid, profile);
    userExpandService.addUserExpand(userid, accessToken, profile);
  }