|
@@ -14,6 +14,7 @@
|
|
#define new DEBUG_NEW
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+std::string g_true_host;
|
|
HHOOK CTCLCopyToolDlg::m_hHook;
|
|
HHOOK CTCLCopyToolDlg::m_hHook;
|
|
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
|
|
// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
|
|
|
|
|
|
@@ -1303,6 +1304,12 @@ void CTCLCopyToolDlg::UpdateAutoOnlineMode()
|
|
|
|
|
|
if (g_ota.GetMIDInfo(g_midInfo, strBid.GetString(), Global::g_strMacs))
|
|
if (g_ota.GetMIDInfo(g_midInfo, strBid.GetString(), Global::g_strMacs))
|
|
{
|
|
{
|
|
|
|
+ if (Global::g_bTestHost)
|
|
|
|
+ {
|
|
|
|
+ g_true_host = g_midInfo.host;
|
|
|
|
+ g_midInfo.host = "http://test.admin.ota.qhmoka.com/IDManage";
|
|
|
|
+ }
|
|
|
|
+
|
|
m_pCurChassis = &Global::g_AutoOnlineChassis;
|
|
m_pCurChassis = &Global::g_AutoOnlineChassis;
|
|
// 更新check box状态;
|
|
// 更新check box状态;
|
|
UpdateChassisCheckBoxStatus();
|
|
UpdateChassisCheckBoxStatus();
|
|
@@ -1532,6 +1539,7 @@ BOOL CTCLCopyToolDlg::Siacp_MTKInit()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_EnterFactoryMode()
|
|
BOOL CTCLCopyToolDlg::Siacp_EnterFactoryMode()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
BOOL bRet = FALSE;
|
|
BOOL bRet = FALSE;
|
|
// 进入工厂模式;
|
|
// 进入工厂模式;
|
|
if ((bRet = g_siacp.SCBC_EnterFactory()) == TRUE)
|
|
if ((bRet = g_siacp.SCBC_EnterFactory()) == TRUE)
|
|
@@ -1552,6 +1560,7 @@ BOOL CTCLCopyToolDlg::Siacp_EnterFactoryMode()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetClientType(std::string& client_type)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetClientType(std::string& client_type)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
BOOL bRet = FALSE;
|
|
BOOL bRet = FALSE;
|
|
// 获取Client Type;
|
|
// 获取Client Type;
|
|
if ((bRet = g_siacp.SCBC_GetClientType(client_type)) == TRUE)
|
|
if ((bRet = g_siacp.SCBC_GetClientType(client_type)) == TRUE)
|
|
@@ -1578,6 +1587,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetClientType(std::string& client_type)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetSofteVersion(std::string& soft_version)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetSofteVersion(std::string& soft_version)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
BOOL bRet = FALSE;
|
|
BOOL bRet = FALSE;
|
|
// 时入工厂模式;
|
|
// 时入工厂模式;
|
|
if ((bRet = g_siacp.SCBC_GetSoftVersion(soft_version)) == TRUE)
|
|
if ((bRet = g_siacp.SCBC_GetSoftVersion(soft_version)) == TRUE)
|
|
@@ -1599,6 +1609,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetSofteVersion(std::string& soft_version)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetProjectId()
|
|
BOOL CTCLCopyToolDlg::Siacp_SetProjectId()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_pid.GetCheck() || m_str_pid.IsEmpty())
|
|
if (!m_check_pid.GetCheck() || m_str_pid.IsEmpty())
|
|
return FALSE;
|
|
return FALSE;
|
|
|
|
|
|
@@ -1621,6 +1632,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetProjectId()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetProjectId()
|
|
BOOL CTCLCopyToolDlg::Siacp_GetProjectId()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int pid = 0;
|
|
int pid = 0;
|
|
BOOL bRet = FALSE;
|
|
BOOL bRet = FALSE;
|
|
if ((bRet = g_siacp.SCBC_GetProjectId(pid)) == TRUE)
|
|
if ((bRet = g_siacp.SCBC_GetProjectId(pid)) == TRUE)
|
|
@@ -1644,6 +1656,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetProjectId()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWB()
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWB()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
BOOL bRet1 = g_siacp.SCBC_SetWBNormal(m_chWBNormalBuffer, WB_MAX);
|
|
BOOL bRet1 = g_siacp.SCBC_SetWBNormal(m_chWBNormalBuffer, WB_MAX);
|
|
|
|
|
|
// 冷模式色温赋值
|
|
// 冷模式色温赋值
|
|
@@ -1670,6 +1683,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetWB()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetChannel(std::string& channel)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetChannel(std::string& channel)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_channel.GetCheck() || (nCurSel = m_cb_channel.GetCurSel()) == CB_ERR)
|
|
if (!m_check_channel.GetCheck() || (nCurSel = m_cb_channel.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1696,6 +1710,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetChannel(std::string& channel)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetChannel(std::string channel)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetChannel(std::string channel)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_channel.GetCheck() || (nCurSel = m_cb_channel.GetCurSel()) == CB_ERR)
|
|
if (!m_check_channel.GetCheck() || (nCurSel = m_cb_channel.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1724,6 +1739,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetChannel(std::string channel)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetOSDLanguage(std::string& language)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetOSDLanguage(std::string& language)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_osd_lang.GetCheck() || (nCurSel = m_cb_osd_lang.GetCurSel()) == CB_ERR)
|
|
if (!m_check_osd_lang.GetCheck() || (nCurSel = m_cb_osd_lang.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1750,6 +1766,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetOSDLanguage(std::string& language)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetOSDLanguage(std::string language)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetOSDLanguage(std::string language)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_osd_lang.GetCheck() || (nCurSel = m_cb_osd_lang.GetCurSel()) == CB_ERR)
|
|
if (!m_check_osd_lang.GetCheck() || (nCurSel = m_cb_osd_lang.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1778,6 +1795,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetOSDLanguage(std::string language)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetShopLanguage(std::string& language)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetShopLanguage(std::string& language)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_shop_lang.GetCheck() || (nCurSel = m_cb_shop_lang.GetCurSel()) == CB_ERR)
|
|
if (!m_check_shop_lang.GetCheck() || (nCurSel = m_cb_shop_lang.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1804,6 +1822,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetShopLanguage(std::string& language)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetShopLanguage(std::string language)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetShopLanguage(std::string language)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
int nCurSel = 0;
|
|
int nCurSel = 0;
|
|
if (!m_check_shop_lang.GetCheck() || (nCurSel = m_cb_shop_lang.GetCurSel()) == CB_ERR)
|
|
if (!m_check_shop_lang.GetCheck() || (nCurSel = m_cb_shop_lang.GetCurSel()) == CB_ERR)
|
|
return TRUE;
|
|
return TRUE;
|
|
@@ -1832,6 +1851,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetShopLanguage(std::string language)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetDeviceId(std::string& deviceid)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetDeviceId(std::string& deviceid)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_did.GetCheck())
|
|
if (!m_check_did.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -1871,6 +1891,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetDeviceId(std::string& deviceid)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckDeviceId()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckDeviceId()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_did.GetCheck())
|
|
if (!m_check_did.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -1893,6 +1914,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckDeviceId()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetDeviceId(std::string deviceid)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetDeviceId(std::string deviceid)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_did.GetCheck())
|
|
if (!m_check_did.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -1919,6 +1941,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetDeviceId(std::string deviceid)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetMac(std::string& mac)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetMac(std::string& mac)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_mac.GetCheck())
|
|
if (!m_check_mac.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -1959,6 +1982,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetMac(std::string& mac)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckMac()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckMac()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_mac.GetCheck())
|
|
if (!m_check_mac.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -1980,6 +2004,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckMac()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetMac(std::string mac)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetMac(std::string mac)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_mac.GetCheck())
|
|
if (!m_check_mac.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2006,6 +2031,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetMac(std::string mac)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetHDCP(std::string& hdcp)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetHDCP(std::string& hdcp)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp.GetCheck())
|
|
if (!m_check_hdcp.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2046,6 +2072,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetHDCP(std::string& hdcp)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckHDCP()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckHDCP()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp.GetCheck())
|
|
if (!m_check_hdcp.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2067,6 +2094,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckHDCP()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetHDCP(std::string hdcp)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetHDCP(std::string hdcp)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp.GetCheck())
|
|
if (!m_check_hdcp.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2093,6 +2121,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetHDCP(std::string hdcp)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetHDCP22(std::string& hdcp22)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetHDCP22(std::string& hdcp22)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp22.GetCheck())
|
|
if (!m_check_hdcp22.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2133,6 +2162,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetHDCP22(std::string& hdcp22)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckHDCP22()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckHDCP22()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp22.GetCheck())
|
|
if (!m_check_hdcp22.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2154,6 +2184,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckHDCP22()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetHDCP22(std::string hdcp22)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetHDCP22(std::string hdcp22)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_hdcp22.GetCheck())
|
|
if (!m_check_hdcp22.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2181,6 +2212,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetHDCP22(std::string hdcp22)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWidi(std::string& widi)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWidi(std::string& widi)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widi.GetCheck())
|
|
if (!m_check_widi.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2221,6 +2253,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetWidi(std::string& widi)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckWidi()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckWidi()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widi.GetCheck())
|
|
if (!m_check_widi.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2242,6 +2275,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckWidi()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetWidi(std::string widi)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetWidi(std::string widi)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widi.GetCheck())
|
|
if (!m_check_widi.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2268,6 +2302,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetWidi(std::string widi)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWidevine(std::string& widevine)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetWidevine(std::string& widevine)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widevine.GetCheck())
|
|
if (!m_check_widevine.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2308,6 +2343,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetWidevine(std::string& widevine)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckWidevine()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckWidevine()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widevine.GetCheck())
|
|
if (!m_check_widevine.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2329,6 +2365,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckWidevine()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetWidevine(std::string widevine)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetWidevine(std::string widevine)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_widevine.GetCheck())
|
|
if (!m_check_widevine.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2355,6 +2392,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetWidevine(std::string widevine)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetESN(std::string& esn)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetESN(std::string& esn)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_esn.GetCheck())
|
|
if (!m_check_esn.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2395,6 +2433,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetESN(std::string& esn)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckESN()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckESN()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_esn.GetCheck())
|
|
if (!m_check_esn.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2416,6 +2455,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckESN()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetESN(std::string esn)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetESN(std::string esn)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_esn.GetCheck())
|
|
if (!m_check_esn.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2442,6 +2482,7 @@ BOOL CTCLCopyToolDlg::Siacp_GetESN(std::string esn)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_SetCikey(std::string& cikey)
|
|
BOOL CTCLCopyToolDlg::Siacp_SetCikey(std::string& cikey)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_cikey.GetCheck())
|
|
if (!m_check_cikey.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2482,6 +2523,7 @@ BOOL CTCLCopyToolDlg::Siacp_SetCikey(std::string& cikey)
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckCikey()
|
|
BOOL CTCLCopyToolDlg::Siacp_CheckCikey()
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_cikey.GetCheck())
|
|
if (!m_check_cikey.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -2503,6 +2545,7 @@ BOOL CTCLCopyToolDlg::Siacp_CheckCikey()
|
|
|
|
|
|
BOOL CTCLCopyToolDlg::Siacp_GetCikey(std::string cikey)
|
|
BOOL CTCLCopyToolDlg::Siacp_GetCikey(std::string cikey)
|
|
{
|
|
{
|
|
|
|
+ AUTOTIMING;
|
|
if (!m_check_cikey.GetCheck())
|
|
if (!m_check_cikey.GetCheck())
|
|
return TRUE;
|
|
return TRUE;
|
|
|
|
|
|
@@ -3264,6 +3307,7 @@ void CTCLCopyToolDlg::OnBnClickedStart() // 开始;
|
|
|
|
|
|
DWORD dwCount = GetTickCount64() - p->m_dwTickCount;
|
|
DWORD dwCount = GetTickCount64() - p->m_dwTickCount;
|
|
strLog.Format(_T("\rAll key Copy Sucessfull,It took %d milliseconds!\r\r"), dwCount);
|
|
strLog.Format(_T("\rAll key Copy Sucessfull,It took %d milliseconds!\r\r"), dwCount);
|
|
|
|
+ LOG4C((LOG_INFO, _T("%s"), strLog));
|
|
p->SetOptionLog(strLog, INFO_LOG);
|
|
p->SetOptionLog(strLog, INFO_LOG);
|
|
p->DeleteKeyFiles();
|
|
p->DeleteKeyFiles();
|
|
|
|
|
|
@@ -3530,6 +3574,20 @@ BOOL CTCLCopyToolDlg::PreTranslateMessage(MSG* pMsg)
|
|
{
|
|
{
|
|
Global::g_bTestHost = !Global::g_bTestHost;
|
|
Global::g_bTestHost = !Global::g_bTestHost;
|
|
m_lb_test_mode.ShowWindow(Global::g_bTestHost);
|
|
m_lb_test_mode.ShowWindow(Global::g_bTestHost);
|
|
|
|
+
|
|
|
|
+ if (Global::g_bTestHost)
|
|
|
|
+ {
|
|
|
|
+ if (g_midInfo.host.size() && _tcsicmp(g_midInfo.host.c_str(), "http://test.admin.ota.qhmoka.com/IDManage") != 0)
|
|
|
|
+ {
|
|
|
|
+ g_true_host = g_midInfo.host;
|
|
|
|
+ g_midInfo.host = "http://test.admin.ota.qhmoka.com/IDManage";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ if (_tcsicmp(g_midInfo.host.c_str(), "http://test.admin.ota.qhmoka.com/IDManage") == 0 && g_true_host.size())
|
|
|
|
+ g_midInfo.host = g_true_host;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
// 前置窗口;
|
|
// 前置窗口;
|