运维如果没有获取到cmdid,则使用SN

ndkvideo
Matthew 4 months ago
parent e762e2b53c
commit b5684256fe

@ -610,8 +610,11 @@ public class MpMasterService extends Service {
logger.warning("Start Mntn report: " + masterUrl + " MntnMode=" + (mMntnMode ? "1" : "0") + " QuickHB=" + (mQuickHbMode ? "1" : "0")); logger.warning("Start Mntn report: " + masterUrl + " MntnMode=" + (mMntnMode ? "1" : "0") + " QuickHB=" + (mQuickHbMode ? "1" : "0"));
String cmdid = appConfig.cmdid;
AppMaster appMaster = new AppMaster(this, masterUrl, appConfig.cmdid, bundleWithMpApp); if (TextUtils.isEmpty(cmdid)) {
cmdid = getSerialNo();
}
AppMaster appMaster = new AppMaster(this, masterUrl, cmdid, bundleWithMpApp);
appMaster.start(isCriticalTime()); appMaster.start(isCriticalTime());
mMasterTimers++; mMasterTimers++;
} }

Loading…
Cancel
Save