@@ -390,20 +390,14 @@ int main(int argc, char** argv)
390390 {
391391 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X (" 启动服务中,MQTT消息服务没有被启用" ));
392392 }
393+ #ifndef _DEBUG
393394 // 发送信息报告
394395 if (st_ServiceCfg.st_XReport .bEnable && !bIsTest)
395396 {
396- if (InfoReport_APIMachine_Send (st_ServiceCfg.st_XReport .tszAPIUrl , st_ServiceCfg.st_XReport .tszServiceName ))
397+ __int64x nTimeCount = 0 ;
398+ if (InfoReport_APIMachine_Send (st_ServiceCfg.st_XReport .tszAPIUrl , st_ServiceCfg.st_XReport .tszServiceName , &nTimeCount))
397399 {
398- __int64x nTimeCount = 0 ;
399- if (InfoReport_APIMachine_GetTime (st_ServiceCfg.st_XReport .tszAPIUrl , st_ServiceCfg.st_XReport .tszServiceName , &nTimeCount))
400- {
401- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,启动信息报告给API服务器:%s 成功,报告次数:%lld" ), st_ServiceCfg.st_XReport .tszAPIUrl , nTimeCount);
402- }
403- else
404- {
405- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 启动服务中,启动信息报告给API服务器:%s 成功,获取报告次数失败,错误:%lX" ), st_ServiceCfg.st_XReport .tszAPIUrl , InfoReport_GetLastError ());
406- }
400+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,启动信息报告给API服务器:%s 成功,报告次数:%lld" ), st_ServiceCfg.st_XReport .tszAPIUrl , nTimeCount);
407401 }
408402 else
409403 {
@@ -414,7 +408,7 @@ int main(int argc, char** argv)
414408 {
415409 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X (" 启动服务中,信息报告给API服务器没有启用" ));
416410 }
417-
411+ # endif
418412 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 所有服务成功启动,服务运行中,XEngine版本:%s%s,发行版本次数:%d,当前运行版本:%s。。。" ), BaseLib_Version_XNumberStr (), BaseLib_Version_XTypeStr (), st_ServiceCfg.st_XVer .pStl_ListStorage ->size (), st_ServiceCfg.st_XVer .pStl_ListStorage ->front ().c_str ());
419413
420414 while (true )
0 commit comments