| | |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoSearchResult;
|
| | | import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetailV2;
|
| | | import com.yeshi.fanli.exception.taobao.TaoBaoTokenParseException;
|
| | | import com.yeshi.fanli.exception.taobao.TaobaoGoodsDownException;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | |
| | | * @return
|
| | | */
|
| | | private boolean analysisTaoToken(String text, PrintWriter out) {
|
| | | String token = StringUtil.picUpTaoToken(text);
|
| | | if (!StringUtil.isNullOrEmpty(token)) {
|
| | | Long auctionId = TaoKeApiUtil.tokenConvertAuctionId(token);
|
| | | List<String> tokenList = TaoBaoUtil.getTokenListFromText(text);
|
| | | if (tokenList != null && tokenList.size() > 0) {
|
| | | String token = tokenList.get(0);
|
| | | Long auctionId = null;
|
| | | try {
|
| | | auctionId = TaoKeApiUtil.tokenConvertAuctionId(token);
|
| | | } catch (TaoBaoTokenParseException e1) {
|
| | | e1.printStackTrace();
|
| | | }
|
| | | if (auctionId != null) {
|
| | | TaoBaoGoodsBrief tb = null;
|
| | | try {
|