|
|
@@ -638,12 +638,13 @@ pub async fn send_clear_msg_request(body_params: &ClearPositionResult) {
|
|
|
headers.insert("report_token", HeaderValue::from_static("r7T$8gBV!f&L@E2+"));
|
|
|
headers.insert("auth", HeaderValue::from_static("4L"));
|
|
|
|
|
|
+ let body = serde_json::to_string(&body_params).unwrap();
|
|
|
|
|
|
// 发送 POST 请求
|
|
|
let res = client
|
|
|
.post("https://t4lapi.skyfffire.com/api/report/searchPositions")
|
|
|
+ .body(body)
|
|
|
.headers(headers)
|
|
|
- .json(body_params)
|
|
|
.send()
|
|
|
.await;
|
|
|
match res {
|
|
|
@@ -661,4 +662,4 @@ pub async fn send_clear_msg_request(body_params: &ClearPositionResult) {
|
|
|
error!("清仓结果上报中控,请求发送失败,异常:{}", e)
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|