统一前后端代码格式化配置
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import { resolveCloudtentaclesConfig } from '../../platforms/cloudtentacles/helpers.js'
|
||||
import { maskCode as maskCodeValue, maskPhone as maskPhoneValue } from '../../../utils/masking.js'
|
||||
import {
|
||||
isTaskFinalStatus,
|
||||
normalizeTaskStatus,
|
||||
TASK_STATUS,
|
||||
} from '../../../domain/task-status.js'
|
||||
import { isTaskFinalStatus, normalizeTaskStatus, TASK_STATUS } from '../../../domain/task-status.js'
|
||||
import { asJsonObject, type JsonObject } from '../../../types/json.js'
|
||||
|
||||
export type { JsonObject }
|
||||
@@ -138,8 +134,7 @@ export function normalizeKuaishouCloudFlow(value: unknown): KuaishouCloudFlow {
|
||||
const role = asJsonObject(source.role)
|
||||
const purchase = asJsonObject(source.purchase)
|
||||
const dispatch = asJsonObject(source.dispatch)
|
||||
const returnNumber =
|
||||
asJsonObject(source.returnNumber)
|
||||
const returnNumber = asJsonObject(source.returnNumber)
|
||||
const consume = asJsonObject(source.consume)
|
||||
const ticket = asJsonObject(source.ticket)
|
||||
const rebind = asJsonObject(source.rebind)
|
||||
@@ -280,7 +275,8 @@ export function normalizeKuaishouCloudShippedSnapshot(
|
||||
roleName: String(source.roleName || source.name || '').trim(),
|
||||
vnId,
|
||||
vnPhone: String(source.vnPhone || '').trim(),
|
||||
vnKey: String(source.vnKey || KUAISHOU_CLOUD_FIXED_VN_KEY).trim() || KUAISHOU_CLOUD_FIXED_VN_KEY,
|
||||
vnKey:
|
||||
String(source.vnKey || KUAISHOU_CLOUD_FIXED_VN_KEY).trim() || KUAISHOU_CLOUD_FIXED_VN_KEY,
|
||||
dispatchedAt,
|
||||
}
|
||||
}
|
||||
@@ -331,8 +327,7 @@ export function buildKuaishouCloudShippedSnapshot(input: {
|
||||
roleName: String(input.roleName || '').trim(),
|
||||
vnId: Number(input.vnId || 0) || 0,
|
||||
vnPhone: String(input.vnPhone || '').trim(),
|
||||
vnKey:
|
||||
String(input.vnKey || KUAISHOU_CLOUD_FIXED_VN_KEY).trim() || KUAISHOU_CLOUD_FIXED_VN_KEY,
|
||||
vnKey: String(input.vnKey || KUAISHOU_CLOUD_FIXED_VN_KEY).trim() || KUAISHOU_CLOUD_FIXED_VN_KEY,
|
||||
dispatchedAt: input.dispatchedAt ? String(input.dispatchedAt) : null,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user