Explorar el Código

排除订单不存在的异常打印

JiahengHe hace 1 año
padre
commit
c7f2f49fb4
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      exchanges/src/coinex_swap_rest.rs

+ 4 - 1
exchanges/src/coinex_swap_rest.rs

@@ -642,7 +642,10 @@ impl CoinexSwapRest {
                 return if is_success && data_json["code"].to_string() == "0" {
                     self.on_success_data(data_json["data"].clone())
                 } else {
-                    error!("请求成功,code码异常。原始http 响应数据:{}, text: {}", res_json, text);
+                    // 3103 是订单不存在
+                    if !is_success || (is_success && data_json["code"] != "3103") {
+                        error!("请求成功,code码异常。原始http 响应数据:{}, text: {}", res_json, text);
+                    }
                     self.on_error_data(&text, &url, &body)
                 };
             }