设置云触手默认登录设备
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { getCloudtentaclesAsset } from '../platforms/cloudtentacles/catalog-service.js'
|
||||
import {
|
||||
normalizeCloudtentaclesDeviceId,
|
||||
normalizeCloudtentaclesDeviceType,
|
||||
} from '../platforms/cloudtentacles/defaults.js'
|
||||
import {
|
||||
getCloudtentaclesSourceByKey,
|
||||
listCloudtentaclesSources,
|
||||
@@ -134,8 +138,8 @@ async function runCloudtentaclesHealthAccount(
|
||||
accountLabel: label,
|
||||
baseUrl: String(session.baseUrl || source.baseUrl || '').trim() || 'https://123.207.217.176',
|
||||
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),
|
||||
})
|
||||
const asset = Number(assetResult.asset || 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user