获取当前设备的 distinct_id
方法示例
export function fetchDistinctId():string;
//鸿蒙平台
export function fetchDistinctIdWithCallback(
callback: (str: string) => void
): void
示例代码
let distinctId = SolarEngine.fetchDistinctId();
//鸿蒙平台
SolarEngine.fetchDistinctIdWithCallback((res) => {
log('distinctId: ' + res);
});