Ver Fonte

修改Htx订单详情格式化

gepangpang há 1 ano atrás
pai
commit
b68a325b52
1 ficheiros alterados com 2 adições e 1 exclusões
  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)
     }