Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
ISS #72
Browse files Browse the repository at this point in the history
^> Fix long IP address causes commad "fate" error.
 : Using some algorithms to make a suitable string and send it to API.
^- Fix log not generated on normal version.
 : Modify macro definition position.
  • Loading branch information
ren-yc committed Jul 5, 2022
1 parent 11941e3 commit 047f46c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/apis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ wstring WCH_GetUniIdent() {
_res.push_back(_in[i]);
}
}
return _res;
return L"11111" + to_wstring(stoll(_res) % 99991);
}

string UTF8ToANSI(string strUTF8) {
Expand Down
5 changes: 2 additions & 3 deletions modules/init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@ void WCH_Init_Ver() {
WCH_TBL->SetProgressState(WCH_Win_hWnd, TBPF_INDETERMINATE);
if (MessageBoxW(NULL, (L"This " + vertype + L" of the program is only used for testing.\nAre you sure you want to start the program?\nCompile time: " + WCH_GetCompileTime()).c_str(), L"WCH WARN", MB_ICONWARNING | MB_YESNO | MB_TOPMOST) == IDNO) {
_exit(0);
} else {
WCH_SetWindowStatus(true);
WCH_pre_start = false;
}
WCH_SetWindowStatus(true);
#endif
WCH_pre_start = false;
}

void WCH_Init_Log() {
Expand Down

0 comments on commit 047f46c

Please sign in to comment.