设置云触手默认登录设备
This commit is contained in:
@@ -4,6 +4,10 @@ import {
|
||||
import {
|
||||
getCloudtentaclesSessionStateByKey,
|
||||
} from '../platforms/cloudtentacles/session-state-service.js'
|
||||
import {
|
||||
normalizeCloudtentaclesDeviceId,
|
||||
normalizeCloudtentaclesDeviceType,
|
||||
} from '../platforms/cloudtentacles/defaults.js'
|
||||
import {
|
||||
listCloudtentaclesSku,
|
||||
} from '../platforms/cloudtentacles/catalog-service.js'
|
||||
@@ -167,8 +171,8 @@ function buildCloudtentaclesSourceContext(
|
||||
sourceKey,
|
||||
baseUrl: String(session?.baseUrl || source.baseUrl || '').trim(),
|
||||
token,
|
||||
deviceId: String(session?.deviceId || source.deviceId || '-').trim() || '-',
|
||||
deviceType: Number(session?.deviceType ?? source.deviceType ?? 0),
|
||||
deviceId: normalizeCloudtentaclesDeviceId(session?.deviceId || source.deviceId),
|
||||
deviceType: normalizeCloudtentaclesDeviceType(session?.deviceType ?? source.deviceType),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user