Skip to content

Commit a91368a

Browse files
committed
improved:cdkey init and process
1 parent e37f6d5 commit a91368a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

XEngine_Source/AuthorizeModule_CDKey/Authorize_CDKey/Authorize_CDKey.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ bool CAuthorize_CDKey::Authorize_CDKey_BuildKeyTime(XENGINE_AUTHORIZE_LOCAL* pSt
809809
{
810810
Authorize_IsErrorOccur = false;
811811

812+
pSt_AuthLocal->st_AuthAppInfo.bInit = true;
812813
//判断注册时间方式
813814
if (ENUM_AUTHORIZE_MODULE_SERIAL_TYPE_CUSTOM == pSt_AuthLocal->st_AuthRegInfo.enSerialType)
814815
{

XEngine_Source/XEngine_APPService/XEngine_AuthorizeApp/Authorize_Dialog/Dialog_CDKey.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ void CDialog_CDKey::OnBnClickedButton1()
249249
AfxMessageBox(_T("创建失败,注册验证类型没选择"));
250250
return;
251251
}
252+
if (3 != m_ComboRegSerial.GetCurSel() || 4 != m_ComboRegSerial.GetCurSel())
253+
{
254+
AfxMessageBox(_T("创建失败,注册类型仅支持次数卡和自定义时间卡"));
255+
return;
256+
}
252257
CString m_StrPass;
253258
m_EditKeyPass.GetWindowText(m_StrPass);
254259
if (m_StrPass.IsEmpty())

0 commit comments

Comments
 (0)