File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
XEngine_Module/XEngine_Verification/Verification_XAuth Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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/* *******************************************************************
You can’t perform that action at this time.
0 commit comments