| | |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | params.put("id", goodsId); |
| | | if (from != null) |
| | | params.put("from", from); |
| | | if (!StringUtils.isEmpty(source)) |
| | | params.put("source", source); |
| | |
| | | commonPostWithFailture(context, BuXinConstant.HOST + "/fanli/api/lijin/goods/getGoodsDetail", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过淘礼金购买 |
| | | * |
| | | * @param context |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @param lijinId |
| | | * @param uid |
| | | * @param from |
| | | * @param handler |
| | | */ |
| | | public static void buyWithLijin(Context context, String goodsId, int goodsType, String lijinId, Long uid, String from, |
| | | BasicTextHttpResponseHandler handler) { |
| | | LinkedHashMap<String, String> params = new LinkedHashMap<>(); |
| | | params.put("goodsId", goodsId); |
| | | params.put("goodsType", goodsType + ""); |
| | | if (lijinId != null) |
| | | params.put("lijinId", lijinId); |
| | | if (uid != null) params.put("uid", uid + ""); |
| | | if (from != null) |
| | | params.put("from", from); |
| | | commonPostWithFailture(context, BuXinConstant.HOST + "/fanli/api/lijin/goods/buyWithLijin", params, handler); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 淘宝获取商品信息1.3.9 |
| | | * |
| | |
| | | int version = PackageUtils2.getVersionCode(context); |
| | | long time = System.currentTimeMillis(); |
| | | String deviceType = MobileUtil.getSystemModel(); |
| | | params.put("packages", "com.yeshi.ec.rebate"); |
| | | params.put("packages", "com.youhuiquan.android"); |
| | | params.put("Version", version + ""); |
| | | params.put("appkey", BuXinConstant.TAO_BAO_KE_KEY); |
| | | params.put("platform", "android"); |
| | |
| | | int version = PackageUtils2.getVersionCode(context); |
| | | long time = System.currentTimeMillis(); |
| | | String deviceType = MobileUtil.getSystemModel(); |
| | | params.put("packages", "com.yeshi.ec.rebate"); |
| | | params.put("packages", "com.youhuiquan.android"); |
| | | params.put("Version", version + ""); |
| | | params.put("appkey", BuXinConstant.TAO_BAO_KE_KEY); |
| | | params.put("platform", "android"); |
| | |
| | | int version = PackageUtils2.getVersionCode(context); |
| | | long time = System.currentTimeMillis(); |
| | | String deviceType = MobileUtil.getSystemModel(); |
| | | params.put("packages", "com.yeshi.ec.rebate"); |
| | | params.put("packages", "com.youhuiquan.android"); |
| | | params.put("Version", version + ""); |
| | | params.put("appkey", BuXinConstant.TAO_BAO_KE_KEY); |
| | | params.put("platform", "android"); |