Parcourir la source

修改Htx订单详情格式化

gepangpang il y a 1 an
Parent
commit
b68a325b52
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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)
     }