From 8c04d27e5cebb7e654c208533e9567c4df2c8acc Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 12 十二月 2019 14:21:44 +0800 Subject: [PATCH] 券时间限制 --- fanli/src/test/java/org/fanli/TaoKeTest.java | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/fanli/src/test/java/org/fanli/TaoKeTest.java b/fanli/src/test/java/org/fanli/TaoKeTest.java index 3763633..ff6f3d7 100644 --- a/fanli/src/test/java/org/fanli/TaoKeTest.java +++ b/fanli/src/test/java/org/fanli/TaoKeTest.java @@ -49,26 +49,28 @@ @Test public void test1() { - System.out.println(TaoBaoUtil.filterTaoToken("锟uPdYM9Knxe锟�")); + // List<TaoBaoGoodsBrief> list= + // TaoKeApiUtil.guessLikeByAuctionId(550439753563L,6); + // System.out.println(list); + // TaoBaoUtil.getTBDetailImageWithSize(597016140493L); + // System.out.println(goods); + // DaTaoKeApiUtil.getGoodsDetailByGoodsId(558195316187L); + try { + TaoKeApiUtil.specialConvertCoupon(608512721647L, new TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, + TaoBaoConstant.TAOBAO_AUTH_APPSECRET, TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT)); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } @Test public void test2() { + String link = TaoKeApiUtil.officialActivityConvert("87140050199", "1571120794546", "20211660"); + System.out.println(TaoKeApiUtil.getTKToken("http://", "姣嶅┐棰勫敭", link)); + // https://s.click.taobao.com/t?e=m%3D2%26s%3DW%2Fys7R71JXMcQipKwQzePCperVdZeJviyK8Cckff7TVRAdhuF14FMXC%2FEJQELlNo5x%2BIUlGKNpVpS9y0ojX%2FfMsvmRQfeMsreH9%2FasRClvq63GoCXmcqkTiRUN2xVR4GdesO8XD8dsNdITvXwTxvKDqJgCOacH%2BU%2FVJqtNeEg5OOvkjnk315zzvflh4%2Fhqj8BmyXDtEFdgwjGkouqJtJeds5wF0j1Yhhp1953%2FcnpLUV6UUID4c8TeTEWJdP8jmRdTEuB5K8MGvkLv1nNhnYz%2FB0z8qlrv%2Bjr%2B%2FiM5RbEEle7auY0HPYWszlTEcWhO9mli2vZjCuAmyG1kYtrC7hgcEnE%2FQxigjMfFc2hYciEyAdpuz3kb9JWJVVX36lFeRKtwLUkdbL0syg%2BG8%2FlCRQJ1YlOPkYHNIul3paqKYwK75NNUki5Nwcg2GYz3Bez8Z8OusR9%2BDFlSU%2BcenL13XDY2hrrfx7OMbmkUtLKDKbz1CCoC2zoKs%2FmnEqY%2Bakgpmw&pvid=24980167&union_lens=lensId:0b013a8d_0cec_16df214d979_38a1 - TaoBaoGoodsBrief goods = null; - try { - goods = TaoKeApiUtil.searchGoodsDetail(601535036423L); - - // goods = TaoKeApiUtil.searchGoodsDetail(601535036423L, new - // TaoKeAppInfo(TaoBaoConstant.TAOBAO_AUTH_APPKEY, - // TaoBaoConstant.TAOBAO_AUTH_APPSECRET, - // TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT)); - } catch (TaobaoGoodsDownException e2) { - e2.printStackTrace(); - } - System.out.println(goods); - - // goods = TaoKeApiUtil.searchGoodsDetail(auctionId); } @Test -- Gitblit v1.8.0