From fc0cc7e808f9228b39b1e6b9d29c5417f41dbcc4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 24 五月 2019 16:52:02 +0800 Subject: [PATCH] 删除 老版动态查询商品 关联yeshi_ec_taobao_goods 的sql --- fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java | 47 ++++++++++++++++++++++++----------------------- 1 files changed, 24 insertions(+), 23 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java index d01a2dd..e7efbd2 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java @@ -48,8 +48,7 @@ @Resource private FloatADService floatADService; - - + /** * 棣栭〉閰嶇疆淇℃伅 * @@ -62,18 +61,18 @@ if ("ios".equalsIgnoreCase(acceptData.getPlatform()) && !Constant.IS_TEST) { appHomeFloatImg = null; } - + JSONObject data = new JSONObject(); if (appHomeFloatImg != null) { data.put("floatImg", appHomeFloatImg); } - + String notifyImg = configService.getAppHomeFloatNotifyImg(); if (!StringUtil.isNullOrEmpty(notifyImg)) { data.put("floatNotifyImg", notifyImg); } - - // 鎮诞澶у浘 1.5.2 -2019.3.20 + + // 鎮诞澶у浘 1.5.2 -2019.3.20 FloatAD floatAD = floatADService.getEffectiveFloatAD(FloatAD.POSITION_INDEX); if (floatAD != null) { JSONObject detail = new JSONObject(); @@ -82,7 +81,7 @@ detail.put("params", floatAD.getParams()); detail.put("showTime", floatAD.getShowMode()); detail.put("accountLogin", floatAD.isJumpNeedLogin()); - + if (uid != null && userInfoExtraService.isNewUser(uid)) { // 鏂扮敤鎴� data.put("floatImgDetail", detail); @@ -90,11 +89,11 @@ data.put("floatImgDetail", detail); } } - + // 棰嗗埜甯姪閾炬帴,1.5.2鍚庣敓鏁� String couponHelp = configService.get("taobao_coupon_help"); data.put("couponHelpUrl", couponHelp); - + // 搴曢儴缃戦〉閾炬帴 String platform = acceptData.getPlatform(); if ("android".equalsIgnoreCase(platform)) { @@ -188,27 +187,29 @@ out.print(JsonUtil.loadFalseResult("鑾峰彇澶辫触")); e.printStackTrace(); } - + } - + /** * 璁㈠崟瑙f瀽閰嶇疆 + * * @param acceptData * @param out */ @RequestMapping(value = "getOrderParseConfig", method = RequestMethod.POST) public void getOrderParseConfig(AcceptData acceptData, PrintWriter out) { - String orderJS = "var orderId= document.getElementById('tp-bought-root').getElementsByClassName('js-order-container')[0].getElementsByTagName('div')[0].getAttribute('data-id');"; - orderJS += "if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {window.location.href='yestv://taobaoorder#'+orderId;} else {window.handle.showOrder(orderId)}"; - JSONObject data = new JSONObject(); - try { - data.put("orderJS", DESUtil.encode(orderJS, StringUtil.getBase64String("YeShiFANLI889*+"), - StringUtil.getBase64String("*M#34f?,"))); - data.put("orderUrl", DESUtil.encode( "https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm",StringUtil.getBase64String("YeShiFANLI889*+"), - StringUtil.getBase64String("*M#34f?,"))); - } catch (Exception e) { - e.printStackTrace(); - } - out.print(JsonUtil.loadTrueResult(data)); + out.print(JsonUtil.loadFalseResult(1, "鏆備笉鏀寔")); + +// String orderJS = configService.get("taobao_order_parse_js"); +// JSONObject data = new JSONObject(); +// try { +// data.put("orderJS", DESUtil.encode(orderJS, StringUtil.getBase64String("YeShiFANLI889*+"), +// StringUtil.getBase64String("*M#34f?,"))); +// data.put("orderUrl", DESUtil.encode("https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm", +// StringUtil.getBase64String("YeShiFANLI889*+"), StringUtil.getBase64String("*M#34f?,"))); +// } catch (Exception e) { +// e.printStackTrace(); +// } +// out.print(JsonUtil.loadTrueResult(data)); } } -- Gitblit v1.8.0