Skip to content

Commit 9a773c6

Browse files
add position feature
1 parent 67aca4a commit 9a773c6

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src-tauri/src/main.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,24 @@ async fn init_app() {
214214
init_http().await;
215215
// judge_market_open().await;
216216
}
217-
async fn update() {
218-
match service::curd::update_all_day_k().await {
219-
Ok(_) => {
220-
info!("更新日线数据成功");
221-
NOTICE
222-
.lock()
223-
.unwrap()
224-
.replace("更新日线数据成功".to_string());
225-
}
226-
Err(e) => {
227-
error!("更新日线数据失败:{}", e);
228-
NOTICE
229-
.lock()
230-
.unwrap()
231-
.replace(format!("更新日线数据失败:{}", e.to_string()));
232-
}
233-
};
234-
}
217+
// async fn update() {
218+
// match service::curd::update_all_day_k().await {
219+
// Ok(_) => {
220+
// info!("更新日线数据成功");
221+
// NOTICE
222+
// .lock()
223+
// .unwrap()
224+
// .replace("更新日线数据成功".to_string());
225+
// }
226+
// Err(e) => {
227+
// error!("更新日线数据失败:{}", e);
228+
// NOTICE
229+
// .lock()
230+
// .unwrap()
231+
// .replace(format!("更新日线数据失败:{}", e.to_string()));
232+
// }
233+
// };
234+
// }
235235
// ///判断是否开市,先发起一个请求,然后sleep 1秒,再发起一个请求,如果两个请求的返回值不一样,则证明开市了,否则证明闭市了。
236236
// async fn judge_market_open() {
237237
// let response1 = REQUEST.get().unwrap().get("https://qt.gtimg.cn/q=sz159992").await.unwrap();

0 commit comments

Comments
 (0)