| | |
| | | |
| | | /** |
| | | * 商品购买 |
| | | * |
| | | * @param activity |
| | | * @param context |
| | | * @param requestInfo |
| | |
| | | |
| | | |
| | | private static void buyTB(final Activity activity, final Context context, GoodsBuyRequestInfo requestInfo, final IBuyGoodsResultListener buyGoodsResultListener) { |
| | | ShoppingApi.getTBLinkInfo(context, requestInfo.getUid(), requestInfo.getGoodsId(), requestInfo.getFrom(), "", new BasicTextHttpResponseHandler() { |
| | | ShoppingApi.getTBLinkInfo(context,requestInfo.getUid(), requestInfo.getGoodsId(), requestInfo.getFrom(), "", new BasicTextHttpResponseHandler() { |
| | | @Override |
| | | public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { |
| | | if (jsonObject.optString("code").equalsIgnoreCase("0")) { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 商品购买请求参数 |
| | | */ |
| | |
| | | private int goodsType; |
| | | private String goodsId; |
| | | private String couponLink; |
| | | private String uid; |
| | | private Long uid; |
| | | private String from; |
| | | |
| | | |
| | |
| | | this.couponLink = couponLink; |
| | | } |
| | | |
| | | public String getUid() { |
| | | public Long getUid() { |
| | | return uid; |
| | | } |
| | | |
| | | public void setUid(String uid) { |
| | | public void setUid(Long uid) { |
| | | this.uid = uid; |
| | | } |
| | | |