#include <arpa/inet.h>
#include <string>
-#include "common.h"
-//#include "srvconf_common.h"
-#include "stg_const.h"
+#include "stg/common.h"
+#include "stg/stg_const.h"
#include "servconf.h"
using namespace std;
PARSER_GET_USERS::PARSER_GET_USERS()
: RecvUserDataCb(NULL),
userDataCb(NULL),
+ user(),
depth(0),
error(false)
{
}
}
+if (strcasecmp(el, "creditExpire") == 0)
+ {
+ if (str2x(attr[1], user.creditExpire) < 0)
+ {
+ return;
+ }
+ }
+
/*if (strcasecmp(el, "freemb") == 0)
{
if (strtodouble2(attr[1], user.freeMb) < 0)
PARSER_GET_USER::PARSER_GET_USER()
: RecvUserDataCb(NULL),
userDataCb(NULL),
+ user(),
depth(0),
error(false)
{
user.ip = inet_addr(attr[1]);
}
+if (strcasecmp(el, "creditExpire") == 0)
+ {
+ if (str2x(attr[1], user.creditExpire) < 0)
+ {
+ return;
+ }
+ }
+
for (int i = 0; i < USERDATA_NUM; i++)
{
string num;
: RecvServerInfoDataCb(NULL),
serverInfoDataCb(NULL),
depth(0),
- error(false)
+ error(false),
+ serverInfo()
{
}
//-----------------------------------------------------------------------------