mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 10:59:43 +08:00
update
This commit is contained in:
parent
d38a3740d0
commit
57dab7f64a
@ -124,7 +124,9 @@ void sendFeedback() {
|
||||
req["build"] = fmt::format("{}", HKU_VERSION_BUILD);
|
||||
req["platform"] = getPlatform();
|
||||
req["arch"] = getCpuArch();
|
||||
client.post("/hku/visit", req);
|
||||
auto res = client.post("/hku/visit", req);
|
||||
json r = res.json();
|
||||
g_latest_version = r["data"]["last_version"].get<int>();
|
||||
|
||||
} catch (...) {
|
||||
// do nothing
|
||||
@ -142,9 +144,7 @@ void sendPythonVersionFeedBack(int major, int minor, int micro) {
|
||||
req["major"] = major;
|
||||
req["minor"] = minor;
|
||||
req["micro"] = micro;
|
||||
auto res = client.post("/hku/pyver", req);
|
||||
json r = res.json();
|
||||
g_latest_version = r["data"]["last_version"].get<int>();
|
||||
client.post("/hku/pyver", req);
|
||||
} catch (...) {
|
||||
// do nothing
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user