mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
fixed direction of getlogsg
This commit is contained in:
parent
acfbb738bb
commit
d5551aa74a
1 changed files with 9 additions and 1 deletions
|
|
@ -179,7 +179,15 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
res = u.log.Serialize();
|
||||
Json::Value temp;
|
||||
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
||||
{
|
||||
temp[i - 1]["to"] = u.log.data[u.log.data.size() - i - 1].to;
|
||||
temp[i - 1]["from"] = u.log.data[u.log.data.size() - i - 1].from;
|
||||
temp[i - 1]["amount"] = (Json::UInt)u.log.data[u.log.data.size() - i - 1].amount;
|
||||
temp[i - 1]["time"] = (Json::UInt64)u.log.data[u.log.data.size() - i - 1].time;
|
||||
}
|
||||
res = std::move(temp);
|
||||
}
|
||||
}))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue