Skip to content

Commit

Permalink
refactor: device info
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jul 1, 2024
1 parent 241af44 commit 286f0d9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sdk/services/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ export async function fresnsInit() {
const deviceInfo = {
agent: 'WeChat',
type: deviceType, // Desktop, Mobile, Tablet, Bot
mac: null,
brand: appDeviceInfo.brand,
model: appDeviceInfo.model,
platformName: appDeviceInfo.system,
platformName: appDeviceInfo.system + ' ' + appBaseInfo.version,
platformFamily: appDeviceInfo.system,
platformVersion: appBaseInfo.version,
browserName: appDeviceInfo.platform,
browserName: appDeviceInfo.platform + ' ' + appBaseInfo.SDKVersion,
browserFamily: appDeviceInfo.platform,
browserVersion: appBaseInfo.SDKVersion,
browserEngine: 'WeChat SDK Lib',
deviceFamily: appDeviceInfo.brand,
deviceModel: appDeviceInfo.model,
deviceMac: null,
appImei: null,
appAndroidId: null,
appOaid: null,
Expand Down

0 comments on commit 286f0d9

Please sign in to comment.