admin
2024-03-21 5b90d8185c455857e10555b67cdff6c7d25b2c72
kp_html/kp/js/http.js
@@ -29,12 +29,15 @@
   },
   get_score_data: function(code, name, callback) {
      params = {
   get_score_data: function(code, name,date, callback) {
      var params = {
         code: code
      }
      if (name) {
         params.name = name;
      }
      if(date){
         params.date = date;
      }
      http_util.http_request("/get_score_info", params, callback);
   },
@@ -125,7 +128,9 @@
      console.log("socket请求", data)
      console.log("参数:",data);
      pyjs.socket_request(JSON.stringify(data), function(result) {
         console.log(result);
         result = JSON.parse(result);
         if (result.code == 0) {
            // pyjs.show_info(type_desc +"成功");
@@ -198,6 +203,15 @@
         plate: plate
      }, callback);
   },   
   get_open_limit_up_count_rank(code,callback){
      var params={}
      if(code){
         params.code = code;
      }
      http_util.http_request("/kpl/get_open_limit_up_count_rank", params, callback);
   },
   get_h_cancel_data:function(code,callback){
       http_util.http_request("/get_h_cancel_data", {
          code: code
@@ -215,9 +229,14 @@
   },
   
   //获取L2的数据
   get_l2_datas:function(code,callback){
       http_util.http_request("/get_l2_datas", {code:code
       }, callback);
   get_l2_datas:function(code, date,callback){
      var params={code:code}
      if(date){
         params['date'] = date
      }
      console.log("L2参数",params);
       http_util.http_request("/get_l2_datas", params, callback);
   },
   //获取L2的数据
   get_trade_progress:function(code,callback){
@@ -225,11 +244,16 @@
       }, callback);
   },
   //获取L2的数据
   get_l2_l_cancel_datas:function(code,buy_single_index,callback){
   get_l2_l_cancel_datas:function(code,buy_single_index,date,callback){
      var params={code:code}
      if(buy_single_index>=0){
         params["buy_single_index"] = buy_single_index;
      }
      if(date){
         params.date = date;
      }
       http_util.http_request("/get_l_cancel_datas", params, callback);
   },
   get_l2_h_cancel_datas:function(code,buy_single_index,callback){