Skip to content

Commit

Permalink
Merge pull request #8 from libxengine/develop
Browse files Browse the repository at this point in the history
V2.7.1.1001 Merge
  • Loading branch information
xengine-qyt authored Jun 2, 2022
2 parents 97e5118 + e8bc449 commit b4e7938
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
XEngine_Authorize V2.7.1.1001

修正:读取CDKEY失败的问题
删除:无用的代码

fixed:read cdkey is incorrent
delete:unused code
======================================================================================
XEngine_Authorize V2.7.0.1001

添加:界面程序增加了用户在线和离线状态栏
Expand Down
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ port :tcp port 5300,websocket port 5301,Transmission verification password: no e
![输入图片说明](https://www.xyry.org/authorize/2.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/3.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/4.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/5.png "在这里输入图片标题")

## Participate in contribution

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ make FLAGS=CleanAll 清理编译
![输入图片说明](https://www.xyry.org/authorize/2.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/3.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/4.png "在这里输入图片标题")
![输入图片说明](https://www.xyry.org/authorize/5.png "在这里输入图片标题")

## 参与贡献

Expand Down
8 changes: 1 addition & 7 deletions XEngine_Apps/Authorize_APPLocal/Authorize_APPLocal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LPCTSTR lpszFile = _T("D:\\XEngine_Authorize\\XEngine_Apps\\Debug\\XEngine_Autho
LPCTSTR lpszFile = _T("XEngine_Authorize.key");
#endif

#define _ENCRYPTO
//#define _ENCRYPTO

int main()
{
Expand Down Expand Up @@ -56,12 +56,6 @@ int main()

strcpy(st_AuthLocal.st_AuthUserInfo.tszUserName, "XEngine");
strcpy(st_AuthLocal.st_AuthUserInfo.tszUserContact, "[email protected]");

#if XENGINE_VERSION_BIT <= 7310001001
//7.30版本必须填充
_tcscpy(st_AuthLocal.st_AuthUserInfo.tszCustom, "none");
Authorize_Local_BuildKeyTime(&st_AuthLocal, 5);
#endif
//生成完毕后可以交给服务端来对key本地验证进行授权
if (!Authorize_Local_WriteKey(lpszFile, &st_AuthLocal))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ void CDialog_Local::OnBnClickedButton2()
{
// TODO: 在此添加控件通知处理程序代码
CString m_StrPass;
UCHAR tszEnBuffer[2048];
TCHAR tszDeBuffer[2048];
XENGINE_AUTHORIZE_LOCAL st_AuthLocal;

memset(&st_AuthLocal, '\0', sizeof(XENGINE_AUTHORIZE_LOCAL));

m_EditPass.GetWindowText(m_StrPass);
m_BtnKeySave.EnableWindow(FALSE);

Expand All @@ -106,12 +106,14 @@ void CDialog_Local::OnBnClickedButton2()
CString m_StrFile = m_FileDlg.GetPathName();
m_EditKeyFile.SetWindowText(m_StrFile);

memset(tszDeBuffer, '\0', sizeof(tszDeBuffer));
memset(tszEnBuffer, '\0', sizeof(tszEnBuffer));
memset(&st_AuthLocal, '\0', sizeof(XENGINE_AUTHORIZE_LOCAL));

if (!m_StrPass.IsEmpty())
{
UCHAR tszEnBuffer[2048];
TCHAR tszDeBuffer[2048];

memset(tszDeBuffer, '\0', sizeof(tszDeBuffer));
memset(tszEnBuffer, '\0', sizeof(tszEnBuffer));

FILE* pSt_File = fopen(m_StrFile.GetBuffer(), "rb");
if (NULL == pSt_File)
{
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit b4e7938

Please sign in to comment.