@@ -1104,26 +1104,6 @@ bool CProtocol_Parse::Protocol_Parse_HttpParseCDKey(LPCXSTR lpszMsgBuffer, int n
11041104 }
11051105 // 注册信息
11061106 Json::Value st_JsonREGInfo = st_JsonRoot[" st_AuthRegInfo" ];
1107- if (!st_JsonREGInfo[" nHasTime" ].isNull ())
1108- {
1109- pSt_Authorize->st_AuthRegInfo .nHasTime = (ENUM_AUTHORIZE_MODULE_CDKEY_TYPE)st_JsonREGInfo[" nHasTime" ].asInt ();
1110- }
1111- if (!st_JsonREGInfo[" enSerialType" ].isNull ())
1112- {
1113- pSt_Authorize->st_AuthRegInfo .enSerialType = (ENUM_AUTHORIZE_MODULE_SERIAL_TYPE)st_JsonREGInfo[" enSerialType" ].asInt ();
1114- }
1115- if (!st_JsonREGInfo[" enRegType" ].isNull ())
1116- {
1117- pSt_Authorize->st_AuthRegInfo .enRegType = (ENUM_AUTHORIZE_MODULE_CDKEY_TYPE)st_JsonREGInfo[" enRegType" ].asInt ();
1118- }
1119- if (!st_JsonREGInfo[" enHWType" ].isNull ())
1120- {
1121- pSt_Authorize->st_AuthRegInfo .enHWType = (ENUM_AUTHORIZE_MODULE_HW_TYPE)st_JsonREGInfo[" enHWType" ].asInt ();
1122- }
1123- if (!st_JsonREGInfo[" enVModeType" ].isNull ())
1124- {
1125- pSt_Authorize->st_AuthRegInfo .enVModeType = (ENUM_AUTHORIZE_MODULE_VERMODE_TYPE)st_JsonREGInfo[" enVModeType" ].asInt ();
1126- }
11271107 if (!st_JsonREGInfo[" tszHardware" ].isNull ())
11281108 {
11291109 _tcsxcpy (pSt_Authorize->st_AuthRegInfo .tszHardware , st_JsonREGInfo[" tszHardware" ].asCString ());
@@ -1148,6 +1128,55 @@ bool CProtocol_Parse::Protocol_Parse_HttpParseCDKey(LPCXSTR lpszMsgBuffer, int n
11481128 {
11491129 _tcsxcpy (pSt_Authorize->st_AuthRegInfo .tszExpiryTime , st_JsonREGInfo[" tszExpiryTime" ].asCString ());
11501130 }
1131+ if (!st_JsonREGInfo[" nHasTime" ].isNull ())
1132+ {
1133+ pSt_Authorize->st_AuthRegInfo .nHasTime = st_JsonREGInfo[" nHasTime" ].asInt ();
1134+ }
1135+ if (!st_JsonREGInfo[" enSerialType" ].isNull ())
1136+ {
1137+ pSt_Authorize->st_AuthRegInfo .enSerialType = (ENUM_AUTHORIZE_MODULE_SERIAL_TYPE)st_JsonREGInfo[" enSerialType" ].asInt ();
1138+ }
1139+ if (!st_JsonREGInfo[" enRegType" ].isNull ())
1140+ {
1141+ pSt_Authorize->st_AuthRegInfo .enRegType = (ENUM_AUTHORIZE_MODULE_CDKEY_TYPE)st_JsonREGInfo[" enRegType" ].asInt ();
1142+ }
1143+ if (!st_JsonREGInfo[" enHWType" ].isNull ())
1144+ {
1145+ pSt_Authorize->st_AuthRegInfo .enHWType = (ENUM_AUTHORIZE_MODULE_HW_TYPE)st_JsonREGInfo[" enHWType" ].asInt ();
1146+ }
1147+ if (!st_JsonREGInfo[" enVModeType" ].isNull ())
1148+ {
1149+ pSt_Authorize->st_AuthRegInfo .enVModeType = (ENUM_AUTHORIZE_MODULE_VERMODE_TYPE)st_JsonREGInfo[" enVModeType" ].asInt ();
1150+ }
1151+ // 临时序列号
1152+ Json::Value st_JsonSerialInfo = st_JsonRoot[" st_AuthSerial" ];
1153+ if (!st_JsonSerialInfo.isNull ())
1154+ {
1155+ if (!st_JsonSerialInfo[" tszTimeSerial" ].isNull ())
1156+ {
1157+ _tcsxcpy (pSt_Authorize->st_AuthSerial .st_TimeLimit .tszTimeSerial , st_JsonSerialInfo[" tszTimeSerial" ].asCString ());
1158+ }
1159+ if (!st_JsonSerialInfo[" nTimeCount" ].isNull ())
1160+ {
1161+ pSt_Authorize->st_AuthSerial .st_TimeLimit .nTimeCount = st_JsonSerialInfo[" nTimeCount" ].asInt ();
1162+ }
1163+ if (!st_JsonSerialInfo[" tszTimeSerial" ].isNull ())
1164+ {
1165+ _tcsxcpy (pSt_Authorize->st_AuthSerial .st_DataLimit .tszDataSerial , st_JsonSerialInfo[" tszTimeSerial" ].asCString ());
1166+ }
1167+ if (!st_JsonSerialInfo[" tszDataTime" ].isNull ())
1168+ {
1169+ _tcsxcpy (pSt_Authorize->st_AuthSerial .st_DataLimit .tszDataTime , st_JsonSerialInfo[" tszDataTime" ].asCString ());
1170+ }
1171+ if (!st_JsonSerialInfo[" bTimeAdd" ].isNull ())
1172+ {
1173+ pSt_Authorize->st_AuthSerial .st_DataLimit .bTimeAdd = st_JsonSerialInfo[" bTimeAdd" ].asBool ();
1174+ }
1175+ if (!st_JsonSerialInfo[" tszUNLimitSerial" ].isNull ())
1176+ {
1177+ _tcsxcpy (pSt_Authorize->st_AuthSerial .st_UNLimit .tszUNLimitSerial , st_JsonSerialInfo[" tszUNLimitSerial" ].asCString ());
1178+ }
1179+ }
11511180 // CDKEY用户信息
11521181 Json::Value st_JsonUserInfo = st_JsonRoot[" st_AuthUserInfo" ];
11531182 if (!st_JsonUserInfo[" tszUserName" ].isNull ())
0 commit comments