Skip to content

Commit 23c6a0a

Browse files
committed
fixed:temp verification process reply
1 parent d5afd16 commit 23c6a0a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

XEngine_Module/XEngine_Verification/Verification_XAuth/Verification_XAuthNet.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,18 @@ bool CVerification_XAuthNet::Verification_XAuthNet_TryRequest(LPCXSTR lpszURLAdd
117117
return false;
118118
}
119119
}
120+
BaseLib_Memory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
120121

122+
if (st_JsonRoot["code"].isNull())
123+
{
124+
Verification_IsErrorOccur = true;
125+
Verification_dwErrorCode = ERROR_XENGINE_MODULE_VERIFICATION_XAUTH_PARSE;
126+
return false;
127+
}
121128
if (0 != st_JsonRoot["code"].asInt())
122129
{
123130
Verification_IsErrorOccur = true;
124131
Verification_dwErrorCode = ERROR_XENGINE_MODULE_VERIFICATION_XAUTH_CODE;
125-
BaseLib_Memory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
126132
return false;
127133
}
128134
if (NULL != pInt_Type)
@@ -132,7 +138,8 @@ bool CVerification_XAuthNet::Verification_XAuthNet_TryRequest(LPCXSTR lpszURLAdd
132138
*pInt_Type = st_JsonRoot["type"].asInt();
133139
}
134140
}
135-
BaseLib_Memory_FreeCStyle((XPPMEM)&ptszMsgBuffer);
141+
m_bLogin = true;
142+
m_bAuth = true;
136143
return true;
137144
}
138145
/********************************************************************

0 commit comments

Comments
 (0)