From 39e50ca2cea3e817a38b0969bb007d13b23a5ae8 Mon Sep 17 00:00:00 2001 From: yezian Date: Wed, 1 May 2024 01:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96storeAppInfo=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E9=A6=96=E6=AC=A1=E6=89=93=E5=BC=80=E4=B8=8D?= =?UTF-8?q?=E8=8E=B7=E5=8F=96android=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/storeInfo.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/storeInfo.js b/utils/storeInfo.js index 30e0e03..8667b4e 100644 --- a/utils/storeInfo.js +++ b/utils/storeInfo.js @@ -25,7 +25,9 @@ import { Platform } from "react-native"; export async function storeAppInfo() { const Application = require("expo-application"); async function getDid() { + const notFirstTimeOpenApp = await get("not_first_time_open_app"); if (Platform.OS === "android") { + if (!notFirstTimeOpenApp) return ""; return Application.getAndroidId(); } else { return await Application.getIosIdForVendorAsync(); @@ -33,6 +35,7 @@ export async function storeAppInfo() { } const b_did = await getDid(); + console.log(b_did); const b_ver = Application.nativeApplicationVersion; const b_dt = Device.osName === "Android" ? 0 : 1; const b_ch = "production";