<< Indent(level) << "cash: " << info.cash << "\n"
<< Indent(level) << "credit: " << info.credit << "\n"
<< Indent(level) << "credit expire: " << TimeToString(info.creditExpire) << "\n"
- << Indent(level) << "last cash add: " << info.lastCash << "\n"
+ << Indent(level) << "last cash add: " << info.lastCashAdd << "\n"
+ << Indent(level) << "last cash add time: " << TimeToString(info.lastCashAddTime) << "\n"
<< Indent(level) << "prepaid traffic: " << info.prepaidTraff << "\n"
<< Indent(level) << "disabled: " << (info.disabled ? "t" : "f") << "\n"
<< Indent(level) << "passive: " << (info.passive ? "t" : "f") << "\n"
<< Indent(level) << "address: " << info.address << "\n"
<< Indent(level) << "phone: " << info.phone << "\n"
<< Indent(level) << "free mb: " << info.stat.freeMb << "\n"
+ << Indent(level) << "last ping time: " << TimeToString(info.pingTime) << "\n"
+ << Indent(level) << "last activity time: " << TimeToString(info.lastActivityTime) << "\n"
<< Indent(level) << "traffic:\n";
for (size_t i = 0; i < DIR_NUM; ++i)
{
AddParser(propertyParsers, "cash", info.cash);
AddParser(propertyParsers, "credit", info.credit);
AddParser(propertyParsers, "creditExpire", info.creditExpire);
- AddParser(propertyParsers, "lastCash", info.lastCash);
- AddParser(propertyParsers, "lastTimeCash", info.lastCash);
+ AddParser(propertyParsers, "lastCash", info.lastCashAdd);
+ AddParser(propertyParsers, "lastTimeCash", info.lastCashAddTime);
AddParser(propertyParsers, "freeMb", info.prepaidTraff);
AddParser(propertyParsers, "down", info.disabled);
AddParser(propertyParsers, "passive", info.passive);
error = attr[3];
else
error = "User not found.";
+ return;
}
- else
- parsingAnswer = true;
+ else if (strcasecmp(attr[0], "login") == 0 && attr[1])
+ info.login = attr[1];
+ parsingAnswer = true;
}
else
parsingAnswer = true;