统一前后端代码格式化配置
This commit is contained in:
@@ -54,9 +54,9 @@ export async function planFulfillmentTaskForOrderItem({
|
||||
const profileId = Number(profile.profile_id || profile.id || 0)
|
||||
const profileKey = String(profile.profile_key || '').trim()
|
||||
const profileName = String(profile.profile_name || profile.name || '').trim()
|
||||
const executorKey = String(profile.executor_key || FULFILLMENT_EXECUTOR_KEYS.MANUAL_DISPATCH)
|
||||
.trim()
|
||||
|| FULFILLMENT_EXECUTOR_KEYS.MANUAL_DISPATCH
|
||||
const executorKey =
|
||||
String(profile.executor_key || FULFILLMENT_EXECUTOR_KEYS.MANUAL_DISPATCH).trim() ||
|
||||
FULFILLMENT_EXECUTOR_KEYS.MANUAL_DISPATCH
|
||||
const fulfillmentConfig = parseJsonObject(profile.config_json)
|
||||
const context = buildFulfillmentTaskContext({
|
||||
order,
|
||||
@@ -229,9 +229,7 @@ function buildFulfillmentTaskContext({
|
||||
? {
|
||||
flowType: 'affiliate_dash',
|
||||
sku: String(affiliateDashConfig.sku || '').trim(),
|
||||
productName: String(
|
||||
affiliateDashConfig.productName || item.sku_name || '',
|
||||
).trim(),
|
||||
productName: String(affiliateDashConfig.productName || item.sku_name || '').trim(),
|
||||
orderNo: '',
|
||||
clientOrderNo: '',
|
||||
orderStatus: '',
|
||||
@@ -279,9 +277,9 @@ async function resolveDynamicFulfillmentProfile(
|
||||
}
|
||||
|
||||
return (
|
||||
await resolveDynamicCloudtentaclesProfile(item, getProfileByKey) ||
|
||||
await resolveDynamicKuaishouFeifeiProfile(item, getProfileByKey) ||
|
||||
await resolveDynamicAffiliateDashProfile(item, getProfileByKey)
|
||||
(await resolveDynamicCloudtentaclesProfile(item, getProfileByKey)) ||
|
||||
(await resolveDynamicKuaishouFeifeiProfile(item, getProfileByKey)) ||
|
||||
(await resolveDynamicAffiliateDashProfile(item, getProfileByKey))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user