Skip to content

Commit

Permalink
fix(app): deviceId is used plus module
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Oct 17, 2022
1 parent 589151b commit 3d2f57f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/platforms/app-plus/helpers/uuid.js

This file was deleted.

6 changes: 3 additions & 3 deletions src/platforms/app-plus/service/api/device/system.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { callApiSync } from '../util'
import { getWindowInfo } from './get-window-info'
import deviceId from 'uni-platform/helpers/uuid'
import { sortObject } from 'uni-shared'

let systemInfo = {}
Expand All @@ -21,7 +20,8 @@ export function getDeviceInfo () {
weexGetSystemInfoSync()
const {
deviceBrand = '', deviceModel, osName,
osVersion, deviceOrientation, deviceType
osVersion, deviceOrientation, deviceType,
deviceId
} = systemInfo

const brand = deviceBrand.toLowerCase()
Expand All @@ -32,7 +32,7 @@ export function getDeviceInfo () {
deviceBrand: brand,
deviceModel,
devicePixelRatio: plus.screen.scale,
deviceId: deviceId(),
deviceId,
deviceOrientation,
deviceType,
model: deviceModel,
Expand Down

0 comments on commit 3d2f57f

Please sign in to comment.