| | |
| | | * @param key |
| | | * @param handler |
| | | */ |
| | | public static void getShopList(Context context, String page, String key, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void getShopList(Context context, String page, String key, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("cid", key); |
| | | params.put("page", page); |
| | | if (uid != null) { |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | } |
| | | commonPostWithFailture(context, BASE_URL2 + "brand/getList", params, handler); |
| | | } |
| | |
| | | * @param page 页码: |
| | | * @param sid 店铺id |
| | | */ |
| | | public static void getShopInfo(Context context, String page, String sid, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void getShopInfo(Context context, String page, String sid, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("id", sid); |
| | | if (uid != null) { |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | } |
| | | commonPost(context, BASE_URL2 + "brand/getShopInfoV2", params, handler); |
| | | } |
| | |
| | | * @param type 精选1, 足迹列表2 |
| | | * @param handler |
| | | */ |
| | | public static void getHistory(Context context, String page, String uid, String type, BasicTextHttpResponseHandler handler) { |
| | | public static void getHistory(Context context, String page, Long uid, String type, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | if (uid != null && uid.trim().length() > 0 && !uid.equalsIgnoreCase("null")) {//已登录:用户id |
| | | params.put("uid", uid); |
| | | } |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (type != null && type.trim().length() > 0 && !type.equalsIgnoreCase("null")) {//精选1, 足迹列表2 |
| | | params.put("type", type); |
| | | } |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void deleteHistory(Context context, String ids, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void deleteHistory(Context context, String ids, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("ids", ids); |
| | | if (uid != null && uid.trim().length() > 0 && !uid.equalsIgnoreCase("null")) {//已登录:用户id |
| | | params.put("uid", uid); |
| | | } |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "brand/deleteHistory", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void getRecommendIndex(Context context, String uid, |
| | | public static void getRecommendIndex(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) |
| | | params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "recommend/getRecommendIndex", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context |
| | | * @param uid |
| | | */ |
| | | public static void getHomeConfig(Context context, String uid, |
| | | public static void getHomeConfig(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "config/getHomeConfigNew", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context |
| | | * @param uid |
| | | */ |
| | | public static void uploadParsedOrder(Context context, String uid, String orderData, |
| | | public static void uploadParsedOrder(Context context, Long uid, String orderData, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("orderData", orderData); |
| | | params.put("source", "unionAuth"); |
| | | commonPostWithFailture(context, BASE_URL + "user/order/uploadParsedOrder", params, handler); |
| | | } |
| | | |
| | | public static void uploadParsedOrder(Context context, String uid, String orderData, String source, |
| | | public static void uploadParsedOrder(Context context, Long uid, String orderData, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("orderData", orderData); |
| | | params.put("source", source); |
| | | commonPostWithFailture(context, BASE_URL + "user/order/uploadParsedOrder", params, handler); |
| | |
| | | * @param handler |
| | | */ |
| | | public static void evaluateShare(Context context, Long uid, int type, String id, Long goodsId, Integer goodsType, BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid + "", true)) |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid + ""); |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void getHomeNavbar(Context context, String uid, |
| | | public static void getHomeNavbar(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "navbar/getHomeItems", params, handler); |
| | | } |
| | | |
| | |
| | | * @param type 列表接口返回的type |
| | | * @param handler |
| | | */ |
| | | public static void getreadCommonMsg(Context context, String uid, String type, BasicTextHttpResponseHandler handler) { |
| | | public static void getreadCommonMsg(Context context, Long uid, String type, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("type", type); |
| | | if (uid != null && uid.trim().length() > 0 && !uid.equalsIgnoreCase("null")) {//当uid为空的时候 不传 |
| | | params.put("uid", uid); |
| | | } |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/msg/readCommonMsg", params, handler); |
| | | } |
| | | |
| | |
| | | * @param id |
| | | * @param handler |
| | | */ |
| | | public static void deleteMsg(Context context, String uid, String type, String id, BasicTextHttpResponseHandler handler) { |
| | | public static void deleteMsg(Context context, Long uid, String type, String id, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("type", type); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL + "user/msg/deleteMsg", params, handler); |
| | | } |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getNotReceived(Context context, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void getNotReceived(Context context, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/getNotReceived", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getTaskList(Context context, String uid, String page, BasicTextHttpResponseHandler handler) { |
| | | public static void getTaskList(Context context, Long uid, String page, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/getTaskList", params, handler); |
| | | } |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getReceiveGoldCoin(Context context, String uid, String type, String ids, BasicTextHttpResponseHandler handler) { |
| | | public static void getReceiveGoldCoin(Context context, Long uid, String type, String ids, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", type); |
| | | if (!StringUtils.isEmpty(ids)) { |
| | | params.put("ids", ids); |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getTokenReceive(Context context, String uid, String token, BasicTextHttpResponseHandler handler) { |
| | | public static void getTokenReceive(Context context, Long uid, String token, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("token", token); |
| | | commonPostWithFailture(context, BASE_URL2 + "search/tokenReceive", params, handler); |
| | | } |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getverifyCode(Context context, String uid, String inviteCode, BasicTextHttpResponseHandler handler) { |
| | | public static void getverifyCode(Context context, Long uid, String inviteCode, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("inviteCode", inviteCode); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/verifyCode", params, handler); |
| | | } |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getverifyWX(Context context, String uid, String inviteCode, BasicTextHttpResponseHandler handler) { |
| | | public static void getverifyWX(Context context, Long uid, String inviteCode, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("code", inviteCode); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/verifyWX", params, handler); |
| | | } |
| | |
| | | * @param handler |
| | | * @param type //类型: 1淘宝 2京东 3拼多多 |
| | | */ |
| | | public static void setOrderAppeal(Context context, String orderId, String uid, String type, BasicTextHttpResponseHandler handler) { |
| | | public static void setOrderAppeal(Context context, String orderId, Long uid, String type, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("orderId", orderId); |
| | | params.put("userInfo.id", uid); |
| | | params.put("userInfo.id", uid + ""); |
| | | params.put("type", type); |
| | | commonPostWithFailture(context, BASE_URL + "lostOrder/findLostOrder", params, handler); |
| | | } |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void getNewGoodsInfo(Context context, String text, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void getNewGoodsInfo(Context context, String text, Long uid, BasicTextHttpResponseHandler handler) { |
| | | //APP内复制的不推荐 |
| | | if (text != null && ClipboardUtil.latestCopyContent != null && text.equalsIgnoreCase(ClipboardUtil.latestCopyContent.getContent()) && (System.currentTimeMillis() - ClipboardUtil.latestCopyContent.getTime()) < 1000 * 60 * 30L) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("text", text); |
| | | if (uid != null && uid.length() > 0 && !StringUtils.isEmpty(uid)) { |
| | | params.put("uid", uid); |
| | | } |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL2 + "search/getRecommendInfo", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void getRewardStatistics(Context context, String uid, String dateType, BasicTextHttpResponseHandler handler) { |
| | | public static void getRewardStatistics(Context context, Long uid, String dateType, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("dateType", dateType); |
| | | commonPost(context, BASE_URL2 + "user/order/getBonusCount", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void setModuleState(Context context, String uid, String param, |
| | | public static void setModuleState(Context context, Long uid, String param, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("params", param); |
| | | commonPost(context, BASE_URL + "customer/setModuleState", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getHomeMsgList(Context context, String uid, String page, |
| | | public static void getHomeMsgList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPost(context, BASE_URL + "user/msg/getHomeMsgListNew", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getSystemMsgList(Context context, String uid, String page, |
| | | public static void getSystemMsgList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPost(context, BASE_URL + "user/msg/getSystemMsgList", params, handler); |
| | | } |
| | | |
| | | |
| | | public static void getHongBaoSendRecordList(Context context, String uid, String page, |
| | | public static void getHongBaoSendRecordList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPost(context, BASE_URL2 + "redpack/getGiveList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getMsgList(Context context, String uid, String page, String type, |
| | | public static void getMsgList(Context context, Long uid, String page, String type, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | if (type != null) |
| | | params.put("type", type); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUnReadMsgCount(Context context, String uid, |
| | | public static void getUnReadMsgCount(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL + "user/msg/getUnReadMsgCount", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void setAllMsgRead(Context context, String uid, |
| | | public static void setAllMsgRead(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL + "user/msg/setAllMsgRead", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void setSystemMsgSolved(Context context, String uid, String id, |
| | | public static void setSystemMsgSolved(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPost(context, BASE_URL + "user/msg/setSystemMsgSolved", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getGoodsCouponList(Context context, String uid, int goodsType, String goodsId, |
| | | public static void getGoodsCouponList(Context context, Long uid, int goodsType, String goodsId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsId", goodsId); |
| | | params.put("goodsType", goodsType + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/coupon/getFreeCouponList", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getOrderCouponList(Context context, String uid, String orderNo, |
| | | public static void getOrderCouponList(Context context, Long uid, String orderNo, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("orderNo", orderNo); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/coupon/getOrderCouponList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context uid |
| | | */ |
| | | public static void getShareRecord(Context context, String uid, String page, String source, |
| | | public static void getShareRecord(Context context, Long uid, String page, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | params.put("source", source); |
| | | commonPost(context, BASE_URL + "share/getlistrecord", params, handler); |
| | |
| | | * @param context |
| | | */ |
| | | public static void search(Context context, String kw, String page, String fillter, String goodsType, |
| | | String order, String uid, String notifyType, BasicTextHttpResponseHandler handler) { |
| | | String order, Long uid, String notifyType, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("key", kw); |
| | | params.put("page", page); |
| | |
| | | params.put("order", order); |
| | | if (notifyType != null) |
| | | params.put("notifyType", notifyType); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL2 + "search/searchGoods", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void getFirstGuide(Context context, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void getFirstGuide(Context context, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL2 + "recommend/getGuide", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid |
| | | * @param handler |
| | | */ |
| | | public static void setRecordBind(Context context, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void setRecordBind(Context context, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL2 + "user/recordBind", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getMailList(Context context, String uid, String page, |
| | | public static void getMailList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPost(context, BASE_URL + "customer/findAccountMessageList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void updateComplaint(Context context, String uid, String content, File[] files, |
| | | public static void updateComplaint(Context context, Long uid, String content, File[] files, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("content", content); |
| | | if (files != null && files.length > 0) { |
| | | LinkedHashMap<String, File[]> params1 = new LinkedHashMap<>(); |
| | |
| | | * @param files 图片 |
| | | * @param handler |
| | | */ |
| | | public static void uploadPortrait(Context context, String uid, File[] files, |
| | | public static void uploadPortrait(Context context, Long uid, File[] files, |
| | | BasicTextHttpResponseHandler handler) { |
| | | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (files != null) { |
| | | LinkedHashMap<String, File[]> params1 = new LinkedHashMap<>(); |
| | | params1.put("file", files); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void bindWeiXin(Context context, String uid, String code, |
| | | public static void bindWeiXin(Context context, Long uid, String code, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("code", code); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindWeiXin", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getLostOrderList(Context context, String uid, String page, |
| | | public static void getLostOrderList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPost(context, BASE_URL + "lostOrder/getLostOrderList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteLostOrder(Context context, String uid, String id, |
| | | public static void deleteLostOrder(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPost(context, BASE_URL + "lostOrder/deleteLostOrder", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteAllLostOrder(Context context, String uid, |
| | | public static void deleteAllLostOrder(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPost(context, BASE_URL + "lostOrder/deleteAllLostOrder", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getTaoBaoCartConfig(Context context, String uid, String position, |
| | | public static void getTaoBaoCartConfig(Context context, Long uid, String position, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("position", position); |
| | | commonPost(context, BASE_URL + "config/getTaoBaoCartConfig", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void saveInfo(Context context, String uid, String nickName, String weiXin, |
| | | public static void saveInfo(Context context, Long uid, String nickName, String weiXin, |
| | | Integer sex, String inviteCode, File wxErCode, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(nickName)) |
| | | params.put("nickName", nickName); |
| | | if (!StringUtils.isEmpty(weiXin)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void bindOPPOPush(Context context, String uid, String registerId, BasicTextHttpResponseHandler handler) { |
| | | public static void bindOPPOPush(Context context, Long uid, String registerId, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("registerId", registerId); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "push/registerOppo", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void bindVIVOPush(Context context, String uid, String registerId, BasicTextHttpResponseHandler handler) { |
| | | public static void bindVIVOPush(Context context, Long uid, String registerId, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("regId", registerId); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "push/registerVivo", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void loginOut(Context context, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void loginOut(Context context, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/logout", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void sendSms(Context context, String uid, String phone, String type, BasicTextHttpResponseHandler handler) { |
| | | public static void sendSms(Context context, Long uid, String phone, String type, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("phone", phone); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", type); |
| | | commonPostWithFailture(context, BASE_URL + "sms/sendSMS", params, handler); |
| | | } |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void bindPhone(Context context, String uid, String vcode, String phone, BasicTextHttpResponseHandler handler) { |
| | | public static void bindPhone(Context context, Long uid, String vcode, String phone, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindPhone", params, handler); |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void addZhifubaoAccount(Context context, String uid, String name, String account, BasicTextHttpResponseHandler handler) { |
| | | public static void addZhifubaoAccount(Context context, Long uid, String name, String account, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("name", name); |
| | | params.put("account", account); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindalipaywithverifynew", params, handler); |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void verifyvcodeforbind(Context context, String uid, String vcode, String phone, BasicTextHttpResponseHandler handler) { |
| | | public static void verifyvcodeforbind(Context context, Long uid, String vcode, String phone, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | commonPostWithFailture(context, BASE_URL + "user/verifyvcodeforbind", params, handler); |
| | |
| | | * @param context vcode短信验证码 phone电话号码 code微信登录的code |
| | | * @param handler loginType 1电话 2微信 |
| | | */ |
| | | public static void bindPhoneNew(Context context, String vcode, String phone, String uid, BasicTextHttpResponseHandler handler) { |
| | | public static void bindPhoneNew(Context context, String vcode, String phone, Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("vcode", vcode); |
| | | params.put("phone", phone); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/bindPhoneNew", params, handler); |
| | | } |
| | | |
| | |
| | | * @param context |
| | | * @param handler |
| | | */ |
| | | public static void unbindPhone(Context context, String uid, String phone, BasicTextHttpResponseHandler handler) { |
| | | public static void unbindPhone(Context context, Long uid, String phone, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("phone", phone); |
| | | commonPostWithFailture(context, BASE_URL + "user/unBindPhone", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getExtractProcess(Context context, String id, String uid, |
| | | public static void getExtractProcess(Context context, String id, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "customer/getextractprocess", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void bindHMPush(Context context, String token, String uid, |
| | | public static void bindHMPush(Context context, String token, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("token", token); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "push/bindHWPush", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getExchangeList(Context context, String uid, String page, |
| | | public static void getExchangeList(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/getExchangeList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void goExchangeGoodsVerify(Context context, String uid, String id, |
| | | public static void goExchangeGoodsVerify(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/verifyExchange", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void goExchangeGoods(Context context, String uid, String id, |
| | | public static void goExchangeGoods(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/exchange", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void inviteCodeExchangeVerify(Context context, String uid, String id, |
| | | public static void inviteCodeExchangeVerify(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/verifyInviteCode", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void inviteCodeExchange(Context context, String uid, String id, |
| | | public static void inviteCodeExchange(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL2 + "integral/exchangeInviteCode", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getTBLinkInfo(Context context, String uid, String goodsId, String from, String source, |
| | | public static void getTBLinkInfo(Context context, Long uid, String goodsId, String from, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("auctionId", goodsId); |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getJDLinkInfo(Context context, String uid, String goodsId, String from, String source, String couponLink, |
| | | public static void getJDLinkInfo(Context context, Long uid, String goodsId, String from, String source, String couponLink, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", goodsId); |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | } |
| | | |
| | | |
| | | public static void getVIPLinkInfo(Context context, String uid, String goodsId, String from, String source, |
| | | public static void getVIPLinkInfo(Context context, Long uid, String goodsId, String from, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", goodsId); |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | } |
| | | |
| | | |
| | | public static void getSuningLinkInfo(Context context, String uid, String goodsId, String from, String source, |
| | | public static void getSuningLinkInfo(Context context, Long uid, String goodsId, String from, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", goodsId); |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getPDDLinkInfo(Context context, String uid, String goodsId, String from, String source, |
| | | public static void getPDDLinkInfo(Context context, Long uid, String goodsId, String from, String source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", goodsId); |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getPDDLink", params, handler); |
| | | } |
| | | |
| | | public static void getPDDAuthInfo(Context context, String uid, boolean buy, |
| | | public static void getPDDAuthInfo(Context context, Long uid, boolean buy, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", (buy ? 1 : 2) + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "pdd/getAuthJumpInfo", params, handler); |
| | | } |
| | | |
| | | //拼多多是否已经授权 |
| | | public static void isPDDAuthed(Context context, String uid, boolean buy, |
| | | public static void isPDDAuthed(Context context, Long uid, boolean buy, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", (buy ? 1 : 2) + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "pdd/isAuth", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteRecommendGoods(Context context, String goodsId, String uid, String reason, int source, |
| | | public static void deleteRecommendGoods(Context context, String goodsId, Long uid, String reason, int source, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("goodsId", goodsId); |
| | | params.put("source", source + ""); |
| | | if (!StringUtils.isNullOrEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(reason)) |
| | | params.put("reason", reason); |
| | | commonPostWithFailture(context, BASE_URL + "goods/deleteRecommendGoods", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void createShareLink(Context context, String uid, String goodsId, String goodsType, String source, |
| | | public static void createShareLink(Context context, Long uid, String goodsId, String goodsType, String source, |
| | | String totalNum, Boolean needGoods, BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsId", goodsId); |
| | | params.put("goodsType", goodsType); |
| | | if (!StringUtils.isEmpty(source)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getTaoBaoAuthInfo(Context context, String uid, String goodsId, String source, boolean first, |
| | | public static void getTaoBaoAuthInfo(Context context, Long uid, String goodsId, String source, boolean first, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (goodsId != null) |
| | | params.put("goodsId", goodsId); |
| | | params.put("source", source); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getMoneyStatistic(Context context, String uid, |
| | | public static void getMoneyStatistic(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "usermoney/getMoneyStatistic", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUserMoneyInfo(Context context, String uid, |
| | | public static void getUserMoneyInfo(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "usermoney/getUserMoneyInfo", params, handler); |
| | | } |
| | | |
| | |
| | | * @param page |
| | | * @param handler |
| | | */ |
| | | public static void getExtractRecord(Context context, String uid, int page, |
| | | public static void getExtractRecord(Context context, Long uid, int page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "usermoney/getExtractRecord", params, handler); |
| | | } |
| | |
| | | * @param date |
| | | * @param handler |
| | | */ |
| | | public static void getHistoryDetail(Context context, String uid, int dateType, String date, |
| | | public static void getHistoryDetail(Context context, Long uid, int dateType, String date, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("datetype", dateType + ""); |
| | | if (date != null) |
| | | params.put("date", date); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void viewShareTextTemplate(Context context, String uid, String goodsId, |
| | | public static void viewShareTextTemplate(Context context, Long uid, String goodsId, |
| | | String hasCoupon, String template, String tljId, |
| | | int goodsType, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsId", goodsId); |
| | | params.put("hasCoupon", hasCoupon); |
| | | params.put("goodsType", goodsType + ""); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getShareTextTemplate(Context context, String uid, String hasCoupon, |
| | | public static void getShareTextTemplate(Context context, Long uid, String hasCoupon, |
| | | String tljId, int goodsType, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("hasCoupon", hasCoupon); |
| | | params.put("goodsType", goodsType + ""); |
| | | if (!StringUtils.isEmpty(tljId)) { |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void saveShareTextTemplate(Context context, String uid, String hasCoupon, |
| | | public static void saveShareTextTemplate(Context context, Long uid, String hasCoupon, |
| | | String template, String tljId, int goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("hasCoupon", hasCoupon); |
| | | params.put("template", template); |
| | | params.put("goodsType", goodsType + ""); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void resetShareTextTemplate(Context context, String uid, String hasCoupon, |
| | | public static void resetShareTextTemplate(Context context, Long uid, String hasCoupon, |
| | | String goodsId, String tljId, int goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("hasCoupon", hasCoupon); |
| | | params.put("goodsId", goodsId); |
| | | params.put("goodsType", goodsType + ""); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getOrderList1(Context context, String page, String uid, Integer state, |
| | | public static void getOrderList1(Context context, String page, Long uid, Integer state, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("state", state + ""); |
| | | |
| | | commonPostWithFailture(context, BASE_URL2 + "user/order/getOrderList", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getOrderList2(Context context, String page, String uid, String orderState, |
| | | public static void getOrderList2(Context context, String page, Long uid, String orderState, |
| | | String type, String startTime, String endTime, Integer slotTime, |
| | | String needCount, Integer dateType, Integer goodsType, String state, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(orderState)) |
| | | params.put("orderState", orderState); |
| | | if (!StringUtils.isEmpty(type)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getOrderList3(Context context, String page, String uid, String orderNo, |
| | | public static void getOrderList3(Context context, String page, Long uid, String orderNo, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("orderNo", orderNo); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/order/getOrderList", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getRankInfo(Context context, String uid, |
| | | public static void getRankInfo(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "customer/getRankInfo", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getOrderStatistics(Context context, String uid, int goodsType, |
| | | public static void getOrderStatistics(Context context, Long uid, int goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", goodsType + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/order/getOrderCount", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getWelfareCenterList(Context context, String page, String uid, |
| | | public static void getWelfareCenterList(Context context, String page, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/coupon/getCouponList", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void sendCoupon(Context context, String uid, String id, |
| | | public static void sendCoupon(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/coupon/giveCoupon", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getSpecialActivity(Context context, String uid, |
| | | public static void getSpecialActivity(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (!StringUtils.isEmpty(uid)) |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/getSpecialActivities", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void useFreeSingleTicket(Context context, String uid, String cid, String goodId, |
| | | public static void useFreeSingleTicket(Context context, Long uid, String cid, String goodId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("cid", cid); |
| | | params.put("goodId", goodId); |
| | | commonPostWithFailture(context, BASE_URL + "user/coupon/useFreeCoupon", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void useRewardTicket(Context context, String uid, String cid, String orderNo, |
| | | public static void useRewardTicket(Context context, Long uid, String cid, String orderNo, |
| | | int goodsType, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("cid", cid); |
| | | params.put("orderNo", orderNo); |
| | | params.put("goodsType", goodsType + ""); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUserInfo2(Context context, String uid, |
| | | public static void getUserInfo2(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "customer/getuserinfoNew", params, handler); |
| | | } |
| | | |
| | |
| | | * @param code 激活码 |
| | | * @param handler |
| | | */ |
| | | public static void getActivationInvite(Context context, String uid, String code, BasicTextHttpResponseHandler handler) { |
| | | public static void getActivationInvite(Context context, Long uid, String code, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("inviteCode", code); |
| | | commonPostWithFailture(context, BASE_URL + "invite/activationInvite", params, handler); |
| | | } |
| | |
| | | * @param code |
| | | * @param handler |
| | | */ |
| | | public static void getActivationInviteWX(Context context, String uid, String code, BasicTextHttpResponseHandler handler) { |
| | | public static void getActivationInviteWX(Context context, Long uid, String code, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("key", code); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/activeInviteWX", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUserMoneyDetailList(Context context, String uid, String index, |
| | | public static void getUserMoneyDetailList(Context context, Long uid, String index, |
| | | String year, String month, int type, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(index)) |
| | | params.put("index", index); |
| | | if (!StringUtils.isEmpty(year)) |
| | |
| | | * @param type |
| | | * @param handler |
| | | */ |
| | | public static void getIncomeDetail(Context context, String uid, int dateType, String date, int type, |
| | | public static void getIncomeDetail(Context context, Long uid, int dateType, String date, int type, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("datetype", dateType + ""); |
| | | params.put("date", date); |
| | | params.put("type", type + ""); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getMoneyDetails(Context context, String uid, String index, |
| | | public static void getMoneyDetails(Context context, Long uid, String index, |
| | | String year, String month, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(index)) |
| | | params.put("index", index); |
| | | if (!StringUtils.isEmpty(year)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getGoldDetails(Context context, String uid, String index, |
| | | public static void getGoldDetails(Context context, Long uid, String index, |
| | | String year, String month, String type, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(index)) |
| | | params.put("index", index); |
| | | if (!StringUtils.isEmpty(year)) |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void extractmoneynew(Context context, String money, String uid, String vcode, String type, |
| | | public static void extractmoneynew(Context context, String money, Long uid, String vcode, String type, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("money", money); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("vcode", vcode); |
| | | params.put("type", type); |
| | | commonPostWithFailture(context, BASE_URL + "customer/extractmoneynew", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void shareTrends(Context context, String uid, String activityId, |
| | | public static void shareTrends(Context context, Long uid, String activityId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (!StringUtils.isEmpty(activityId)) { |
| | | params.put("id", activityId); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getRemindTeam(Context context, String uid, String inviteId, |
| | | public static void getRemindTeam(Context context, Long uid, String inviteId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("inviteId", inviteId); |
| | | // commonPostWithFailture(context, BASE_URL + "customer/getMyTeam", params, handler); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/remindTeam", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getCountMyTeam(Context context, String uid, |
| | | public static void getCountMyTeam(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/countMyTeam", params, handler); |
| | | } |
| | | |
| | |
| | | * @param workerId |
| | | * @param handler |
| | | */ |
| | | public static void getFansInfo(Context context, String uid, String workerId, |
| | | public static void getFansInfo(Context context, Long uid, String workerId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("workerId", workerId); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/getFansInfo", params, handler); |
| | | } |
| | |
| | | * @param info -筛选条件 |
| | | * @param handler |
| | | */ |
| | | public static void getMyTeamV2(Context context, String uid, int page, String key, int type, TeamScreenInfo info, |
| | | public static void getMyTeamV2(Context context, Long uid, int page, String key, int type, TeamScreenInfo info, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page + ""); |
| | | params.put("type", type + ""); |
| | | if (!StringUtils.isEmpty(key)) { |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void saveMemoName(Context context, String uid, String inviteId, String memoName, |
| | | public static void saveMemoName(Context context, Long uid, String inviteId, String memoName, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("inviteId", inviteId); |
| | | params.put("memoName", memoName); |
| | | commonPostWithFailture(context, BASE_URL + "customer/setextrainfo", params, handler); |
| | |
| | | * @param tags |
| | | * @param handler |
| | | */ |
| | | public static void saveTags(Context context, String uid, String workerId, String tags, |
| | | public static void saveTags(Context context, Long uid, String workerId, String tags, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("workerId", workerId); |
| | | params.put("tags", tags); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/saveTags", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getInviteImg(Context context, String uid, String activityId, |
| | | public static void getInviteImg(Context context, Long uid, String activityId, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("activityId", activityId); |
| | | commonPostWithFailture(context, BASE_URL + "activity/inviteImg", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getPushRecommendhistory(Context context, String page, String uid, String deviceToken, |
| | | public static void getPushRecommendhistory(Context context, String page, Long uid, String deviceToken, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("deviceToken", deviceToken); |
| | | commonPostWithFailture(context, BASE_URL + "push/gethistory", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void canExtract(Context context, String uid, String money, |
| | | public static void canExtract(Context context, Long uid, String money, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("money", money); |
| | | commonPostWithFailture(context, BASE_URL + "customer/canextract", params, handler); |
| | | } |
| | |
| | | * @param uid 用户id |
| | | * @param handler |
| | | */ |
| | | public static void getcountHongBao(Context context, String uid, |
| | | public static void getcountHongBao(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "redpack/countInfo", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid 用户id |
| | | * @param handler |
| | | */ |
| | | public static void giveTLJ(Context context, String uid, String amount, |
| | | public static void giveTLJ(Context context, Long uid, String amount, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("amount", amount); |
| | | commonPostWithFailture(context, BASE_URL2 + "redpack/giving", params, handler); |
| | | } |
| | |
| | | * @param uid 用户id |
| | | * @param handler |
| | | */ |
| | | public static void exchangeCash(Context context, String uid, String amount, |
| | | public static void exchangeCash(Context context, Long uid, String amount, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("amount", amount); |
| | | commonPostWithFailture(context, BASE_URL2 + "redpack/exchangeCash", params, handler); |
| | | } |
| | |
| | | * @param uid 用户id |
| | | * @param handler |
| | | */ |
| | | public static void getHongbaoDetails(Context context, String uid, |
| | | public static void getHongbaoDetails(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | // params.put("type", type); |
| | | if (uid != null && uid.trim().length() > 0 && !uid.equalsIgnoreCase("null")) {//当uid为空的时候 不传 |
| | | params.put("uid", uid); |
| | | } |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "taolijin/getWinDetail", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid 用户id |
| | | * @param handler |
| | | */ |
| | | public static void getMSGConfig(Context context, String uid, |
| | | public static void getMSGConfig(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "config/getMSGConfig", params, handler); |
| | | } |
| | | |
| | |
| | | * @param page 页码:1 |
| | | * @param handler |
| | | */ |
| | | public static void getv2ShareRecord(Context context, String uid, String page, |
| | | public static void getv2ShareRecord(Context context, Long uid, String page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page); |
| | | commonPostWithFailture(context, BASE_URL2 + "taolijin/getShareRecord", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void openMessage(Context context, String uid, String id, |
| | | public static void openMessage(Context context, Long uid, String id, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", id); |
| | | commonPostWithFailture(context, BASE_URL + "customer/openAccountMessage", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUserAccount(Context context, String uid, |
| | | public static void getUserAccount(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "customer/getuseraccount", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getZFBInfo(Context context, String uid, |
| | | public static void getZFBInfo(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "customer/getalipayaccount", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getCollectioList(Context context, String page, String uid, |
| | | public static void getCollectioList(Context context, String page, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "consumer/collectionGoodsList", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteCollect(Context context, String ids, String type, String uid, |
| | | public static void deleteCollect(Context context, String ids, String type, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("ids", ids); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", type); |
| | | commonPostWithFailture(context, BASE_URL2 + "consumer/deleteCollectionGoods", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void addSelection(Context context, String uid, String auctionIds, |
| | | public static void addSelection(Context context, Long uid, String auctionIds, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("ids", auctionIds); |
| | | commonPostWithFailture(context, BASE_URL2 + "shraeStorage/addStorage", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getFootmark(Context context, String page, String uid, |
| | | public static void getFootmark(Context context, String page, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "consumer/getScanHistory", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteFootmark(Context context, String ids, String type, String uid, |
| | | public static void deleteFootmark(Context context, String ids, String type, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("ids", ids); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", type); |
| | | commonPostWithFailture(context, BASE_URL2 + "consumer/deleteScanhistory", params, handler); |
| | | } |
| | |
| | | * @param context |
| | | * @param goodsType 平台: 1淘宝 2京东 3拼多多 |
| | | */ |
| | | public static void getSelectioStoreHouseList(Context context, String page, String uid, String goodsType, |
| | | public static void getSelectioStoreHouseList(Context context, String page, Long uid, String goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("page", page); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsType", goodsType); |
| | | commonPostWithFailture(context, BASE_URL2 + "shraeStorage/getlist", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void deleteSelectStoreHouse(Context context, String ids, String uid, |
| | | public static void deleteSelectStoreHouse(Context context, String ids, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("storageIds", ids); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "userstorage/deletestorage", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void shareSelectStoreHouse(Context context, String ids, String uid, int goodsType, |
| | | public static void shareSelectStoreHouse(Context context, String ids, Long uid, int goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("storageIds", ids); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsType", goodsType + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "shraeStorage/createShare", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void collectionGoods(Context context, String id, String uid, String type, String goodsType, |
| | | public static void collectionGoods(Context context, String id, Long uid, String type, String goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("type", type); |
| | | params.put("goodsType", goodsType); |
| | | commonPostWithFailture(context, BASE_URL2 + "consumer/collectionGoods", params, handler); |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void addSelectionStoreHouse(Context context, String id, String uid, String goodsType, |
| | | public static void addSelectionStoreHouse(Context context, String id, Long uid, String goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsType", goodsType); |
| | | commonPostWithFailture(context, BASE_URL2 + "shraeStorage/accordtorage", params, handler); |
| | | } |
| | | |
| | | |
| | | public static void sendGoodsOrder(Context context, String id, String uid, String goodsType, |
| | | public static void sendGoodsOrder(Context context, String id, Long uid, String goodsType, |
| | | BasicTextHttpResponseHandler handler) { |
| | | if (!LoginAndInviteStatusUtil.acessNext(context, uid, true)) |
| | | return; |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("goodsId", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("goodsType", goodsType); |
| | | commonPostWithFailture(context, BASE_URL2 + "user/cloud/sendGoods", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void getGoodsDetailInfo(Context context, String id, String uid, |
| | | public static void getGoodsDetailInfo(Context context, String id, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL + "user/getnewgoodsdetail", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void getGoodsInfoTB(Context context, String id, String uid, String from, |
| | | public static void getGoodsInfoTB(Context context, String id, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getDetailTB", params, handler); |
| | | } |
| | | |
| | | |
| | | public static void getGoodsInfo(Context context, String goodsId, int goodsType, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("goodsId", goodsId); |
| | | params.put("goodsType", goodsType + ""); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (from != null) |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BuXinConstant.HOST + "/fanli/api/lijin/goods/getGoodsDetail", params, handler); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void getGoodsInfoJD(Context context, String id, String uid, String from, |
| | | public static void getGoodsInfoJD(Context context, String id, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getDetailJD", params, handler); |
| | | } |
| | |
| | | * @param from |
| | | * @param handler |
| | | */ |
| | | public static void getGoodsInfoVIP(Context context, String id, String uid, String from, |
| | | public static void getGoodsInfoVIP(Context context, String id, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getDetailVIP", params, handler); |
| | | } |
| | |
| | | * @param from |
| | | * @param handler |
| | | */ |
| | | public static void getGoodsInfoSuning(Context context, String id, String uid, String from, |
| | | public static void getGoodsInfoSuning(Context context, String id, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getDetailSuning", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void getGoodsInfoPDD(Context context, String id, String uid, String from, |
| | | public static void getGoodsInfoPDD(Context context, String id, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("id", id); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BASE_URL2 + "goods/getDetailPDD", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context id 商品ID |
| | | */ |
| | | public static void reportOrder(Context context, String order, String uid, String url, String money, |
| | | public static void reportOrder(Context context, String order, Long uid, String url, String money, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("order", order); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("money", money); |
| | | params.put("auctionUrl", url); |
| | | commonPostWithFailture(context, BASE_URL + "user/reportorder", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getInviteInfo(Context context, String uid, |
| | | public static void getInviteInfo(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("pageIndex", "1"); |
| | | params.put("activityRules", "activityRules"); |
| | | commonPostWithFailture(context, BASE_URL + "invite/inviteGetMoney", params, handler); |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void inviteFriend(Context context, String uid, int page, |
| | | public static void inviteFriend(Context context, Long uid, int page, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<String, String>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "invite/getInviteImgs", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void getUserItems(Context context, String uid, |
| | | public static void getUserItems(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "navbar/getUserItems", params, handler); |
| | | } |
| | | |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void saveUserItems(Context context, String uid, String barIds, |
| | | public static void saveUserItems(Context context, Long uid, String barIds, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("barIds", barIds); |
| | | commonPostWithFailture(context, BASE_URL2 + "navbar/saveUserItems", params, handler); |
| | | } |
| | |
| | | * |
| | | * @param context |
| | | */ |
| | | public static void resetDefault(Context context, String uid, |
| | | public static void resetDefault(Context context, Long uid, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "navbar/restoreDefault", params, handler); |
| | | } |
| | | |
| | |
| | | * @param uid |
| | | */ |
| | | public static void getSystemParams(Context context, |
| | | String uid, BasicTextHttpResponseHandler handler) { |
| | | Long uid, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (uid != null && !uid.equals("") && !uid.equals("null")) { |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | } |
| | | boolean taobao = ToolUtil.uninstallSoftware(context, "com.taobao.taobao"); |
| | | boolean tmall = ToolUtil.uninstallSoftware(context, "com.tmall.wireless"); |
| | |
| | | * @param page |
| | | * @param uid |
| | | */ |
| | | public static void getShareExplosions(Context context, String uid, |
| | | public static void getShareExplosions(Context context, Long uid, |
| | | int page, BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("uid", uid); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("page", page + ""); |
| | | commonPostWithFailture(context, BASE_URL2 + "taolijin/getShareGoodsV2", params, handler); |
| | | } |