소스 검색

修改coinex错误码判断条件

JiahengHe 1 년 전
부모
커밋
1b76db336a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      exchanges/src/coinex_swap_rest.rs

+ 1 - 1
exchanges/src/coinex_swap_rest.rs

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