Explorar el Código

修改Htx订单详情格式化

gepangpang hace 1 año
padre
commit
b68a325b52
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      standard/src/htx_swap.rs

+ 2 - 1
standard/src/htx_swap.rs

@@ -270,7 +270,8 @@ impl Platform for HtxSwap {
         }
 
         let res_data_json = response.data;
-        let result = format_order_item(res_data_json, ct_val);
+        let orders = res_data_json.as_array().unwrap();
+        let result = format_order_item(orders[0].clone(), ct_val);
         Ok(result)
     }