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

nx2024
Matthew 4 months ago
parent a3eeeb2e4f
commit b78b35b5ff

@ -590,8 +590,13 @@ 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"));
AppMaster appMaster = new AppMaster(this, masterUrl, appConfig.cmdid, bundleWithMpApp); String cmdid = appConfig.cmdid;
appMaster.start(); if (TextUtils.isEmpty(cmdid)) {
cmdid = getSerialNo();
}
AppMaster appMaster = new AppMaster(this, masterUrl, cmdid, bundleWithMpApp);
appMaster.start(isCriticalTime());
mMasterTimers++;
} }
public static class AlarmReceiver extends BroadcastReceiver { public static class AlarmReceiver extends BroadcastReceiver {

Loading…
Cancel
Save