参考如下代码:let flag = bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO; let bundleInfo = bundleManager.getBundleInfoForSelfSync(flag) let appId = bundleInfo.signatureInfo.appId;
参考如下代码: