refactor(fulfillment): 移除飞飞/乐玩通道,仅保留 affiliate_dash
新单只路由 affiliate_dash(未命中走 manual_dispatch);历史飞飞/乐玩任务保留只读 stub,避免订单重同步失败。同步清理 cloudtentacles 调度、Admin 写路径与相关 env。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -108,38 +108,6 @@ export function assertClaimExpectedUidReady(task: Partial<TaskRow> | null | unde
|
||||
return expectedUid
|
||||
}
|
||||
|
||||
/**
|
||||
* lewan 自动发货前:必须已有 expectedUid(不再回落「仅确认角色」旧路径)。
|
||||
* mock 任务可跳过。
|
||||
*/
|
||||
export function assertLewanAutoFulfillmentUidReady(
|
||||
task: Partial<TaskRow> | null | undefined,
|
||||
options: { allowMockSkip?: boolean; errorCodePrefix?: string } = {},
|
||||
): string {
|
||||
const context = parseTaskContext(task)
|
||||
const flow =
|
||||
context.kuaishouCloudFulfillment && typeof context.kuaishouCloudFulfillment === 'object'
|
||||
? (context.kuaishouCloudFulfillment as JsonObject)
|
||||
: {}
|
||||
const mock = flow.mock && typeof flow.mock === 'object' ? (flow.mock as JsonObject) : null
|
||||
if (options.allowMockSkip !== false && mock?.enabled === true) {
|
||||
return getClaimIdentityFromTask(task).expectedUid
|
||||
}
|
||||
|
||||
const expectedUid = getClaimIdentityFromTask(task).expectedUid
|
||||
if (!expectedUid) {
|
||||
const prefix = String(options.errorCodePrefix || 'kuaishou_cloud').trim() || 'kuaishou_cloud'
|
||||
throw createHttpError(
|
||||
'该 lewan 任务尚未填写游戏 UID,请用户打开领取页提交 UID 后再发货(旧单不再支持无 UID 自动发货)',
|
||||
{
|
||||
statusCode: 409,
|
||||
errorCode: `${prefix}_expected_uid_required`,
|
||||
},
|
||||
)
|
||||
}
|
||||
return expectedUid
|
||||
}
|
||||
|
||||
export function buildClaimIdentityAdminSummary(
|
||||
context: unknown,
|
||||
options: { flowLike?: unknown; taskRoleId?: unknown; taskRoleName?: unknown } = {},
|
||||
|
||||
Reference in New Issue
Block a user