yujian
2019-05-20 179b39401c406579a0d10c442a665aeb2802e931
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/ConfigController.java
File was renamed from fanli/src/main/java/com/yeshi/fanli/controller/client/ConfigController.java
@@ -1,4 +1,4 @@
package com.yeshi.fanli.controller.client;
package com.yeshi.fanli.controller.client.v1;
import java.io.PrintWriter;
@@ -48,7 +48,6 @@
   @Resource
   private FloatADService floatADService;
   
   /**
    * 首页配置信息
@@ -193,19 +192,19 @@
   
   /**
    * 订单解析配置
    *
    * @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)}";
      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?,")));
         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();
      }