优化判断设备类型的逻辑

This commit is contained in:
yezian 2024-05-17 13:55:21 +08:00
parent 00b37499da
commit 787eb07d4d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export async function storeAppInfo() {
const b_did = await getDid(); const b_did = await getDid();
const b_ver = Application.nativeApplicationVersion; const b_ver = Application.nativeApplicationVersion;
const b_dt = Device.osName === "Android" ? 0 : 1; const b_dt = Platform.OS === "android" ? 0 : 1;
const b_ch = "production"; const b_ch = "production";
const b_model = Device.modelName; const b_model = Device.modelName;
const b_osver = Device.osVersion; const b_osver = Device.osVersion;