| | |
| | | cout << result << endl; |
| | | rapidjson::Document doc1 = JsonUtil::parseUTF8(result); |
| | | if (doc1.IsObject() && doc1["code"].GetInt() == 0) { |
| | | dlg->labelUseful.SetWindowTextW(CString( StringUtil::to_string( doc1["data"][0]["usefulMoney"].GetDouble()).c_str())); |
| | | dlg->labelTotal.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["usefulMoney"].GetDouble()+ doc1["data"][0]["frozenCash"].GetDouble()).c_str())); |
| | | dlg->labelFetchLimit.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["fetchLimit"].GetDouble()).c_str())); |
| | | dlg->labelFrozen.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["frozenCash"].GetDouble()).c_str())); |
| | | if (doc1.HasMember("data")&& doc1["data"].IsArray()) |
| | | { |
| | | dlg->labelUseful.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["usefulMoney"].GetDouble()).c_str())); |
| | | dlg->labelTotal.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["usefulMoney"].GetDouble() + doc1["data"][0]["frozenCash"].GetDouble()).c_str())); |
| | | dlg->labelFetchLimit.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["fetchLimit"].GetDouble()).c_str())); |
| | | dlg->labelFrozen.SetWindowTextW(CString(StringUtil::to_string(doc1["data"][0]["frozenCash"].GetDouble()).c_str())); |
| | | } |
| | | } |
| | | |
| | | |