优化判断设备类型的逻辑
This commit is contained in:
parent
00b37499da
commit
787eb07d4d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue