| | |
| | | commonPostWithFailture(context, BASE_URL + "user/bindWeiXin", params, handler); |
| | | } |
| | | |
| | | |
| | | public static void bindQQ(Context context, Long uid, String qqUser, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("qqUser", qqUser); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindQQ", params, handler); |
| | | } |
| | | |
| | | /** |
| | | * app更新 |
| | | * |
| | |
| | | * @param context vcode短信验证码 phone电话号码 code微信登录的code |
| | | * @param handler loginType 1电话 2微信 |
| | | */ |
| | | public static void loginNew(Context context, String vcode, String phone, String code, String loginType, BasicTextHttpResponseHandler handler) { |
| | | public static void loginNew(Context context, String vcode, String phone, String code, String loginType, String accessToken, String qqUser, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | params.put("code", code); |
| | | if (vcode != null) |
| | | params.put("vcode", vcode); |
| | | if (phone != null) |
| | | params.put("phone", phone); |
| | | if (code != null) |
| | | params.put("code", code); |
| | | params.put("loginType", loginType); |
| | | if (accessToken != null) { |
| | | params.put("aliAccessToken", accessToken); |
| | | } |
| | | |
| | | if (qqUser != null) { |
| | | params.put("qqUser", qqUser); |
| | | } |
| | | |
| | | commonPostWithFailture(context, BASE_URL2 + "user/login", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context vcode短信验证码 phone电话号码 code微信登录的code |
| | | * @param handler loginType 1电话 2微信 |
| | | */ |
| | | public static void bindPhoneNew(Context context, String vcode, String phone, Long uid, BasicTextHttpResponseHandler handler) { |
| | | public static void bindPhoneNew(Context context, String vcode, String phone, String accessToken, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | if (vcode != null) |
| | | params.put("vcode", vcode); |
| | | if (phone != null) |
| | | params.put("phone", phone); |
| | | if (accessToken != null) |
| | | params.put("aliAccessToken", accessToken); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindPhoneNew", params, handler); |
| | | } |
| | | |
| | | |
| | | public static void bindPhoneWithOutLogin(Context context, String vcode, String phone, String key, BasicTextHttpResponseHandler handler) { |
| | | public static void bindPhoneWithOutLogin(Context context, String vcode, String phone, String accessToken, String key, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | if (vcode != null) |
| | | params.put("vcode", vcode); |
| | | if (phone != null) |
| | | params.put("phone", phone); |
| | | params.put("key", key); |
| | | if (accessToken != null) |
| | | params.put("aliAccessToken", accessToken); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/bindPhoneLogin", params, handler); |
| | | } |
| | | |
| | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("auctionId", goodsId); |
| | | params.put("from", from); |
| | | if (from != null) |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | | params.put("source", source); |
| | | commonPostWithFailture(context, BASE_URL + "goods/gettaobaolink", params, handler); |
| | |
| | | |
| | | |
| | | /** |
| | | * 获取用户礼金的创建信息 |
| | | * |
| | | * @param context |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @param lijinId |
| | | * @param uid |
| | | * @param from |
| | | * @param handler |
| | | */ |
| | | public static void getUserLijinCreatedInfo(Context context, String goodsId, Integer goodsType, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (goodsId != null) |
| | | params.put("goodsId", goodsId); |
| | | if (goodsType != null) |
| | | params.put("goodsType", goodsType + ""); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BuXinConstant.HOST + "/fanli/api/lijin/user/getUserLijinCreatedInfo", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取礼金的用户等级 |
| | | * |
| | | * @param context |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getLijinUserLevel(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BuXinConstant.HOST + "/fanli/api/lijin/user/getUserLevel", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 淘宝获取商品信息1.3.9 |
| | | * |
| | | * @param context id 商品ID |