|
|
@@ -402,8 +402,9 @@ impl OkxExc {
|
|
|
} else {
|
|
|
let body: String = req_data.data;
|
|
|
let json_value: serde_json::Value = serde_json::from_str(&body).unwrap();
|
|
|
+
|
|
|
let code = json_value["code"].as_str().unwrap();
|
|
|
- let data = json_value["data"].as_str().unwrap();
|
|
|
+ let data = serde_json::to_string(&json_value["data"]).unwrap();
|
|
|
let msg = json_value["msg"].as_str().unwrap();
|
|
|
|
|
|
// println!("--解析成功----code:{}",code);
|