|
|
@@ -632,7 +632,7 @@ impl CoinexSwapRest {
|
|
|
|
|
|
let is_success = response.status().is_success(); // 先检查状态码
|
|
|
let text = response.text().await.unwrap();
|
|
|
- info!("url: {}, 原始http响应字符串:res: {}", url, text);
|
|
|
+ info!("url: {}, 原始http响应:response: {:?}", url, response);
|
|
|
let data_json: Value = serde_json::from_str(text.as_str()).unwrap();
|
|
|
return if is_success && data_json["code"].to_string() == "0" {
|
|
|
self.on_success_data(data_json["data"].clone())
|