瀏覽代碼

修改Htx订单详情格式化

gepangpang 1 年之前
父節點
當前提交
b68a325b52
共有 1 個文件被更改,包括 2 次插入1 次删除
  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)
     }