Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dafa45f348 | ||
|
|
7c7810261b |
@@ -44,3 +44,6 @@ send_code/
|
||||
|
||||
artifacts/
|
||||
har/
|
||||
|
||||
# 扩展构建产物(本地打包给客服安装,不入库)
|
||||
apps/extensions/*.zip
|
||||
|
||||
@@ -690,7 +690,10 @@ export async function startPublicBinding(
|
||||
decision.allowedActions.includes('start_rebind') ||
|
||||
decision.allowedActions.includes('refresh_rebind_qr')
|
||||
// 首次绑定允许自动出码(页面进入第一步就要码);换绑必须由客户显式点「重新扫码换绑」触发。
|
||||
const wantsFirstBinding = canStartFirstBinding
|
||||
// 已经有一张有效二维码时,未显式要求刷新的调用直接复用,避免任何轮询/重入路径反复重开码。
|
||||
const explicitRefresh = input.intent === 'rebind' || input.forceRebind === true
|
||||
const reuseFirstBindingQr = decision.flowState === 'first_bind_qr_pending' && !explicitRefresh
|
||||
const wantsFirstBinding = canStartFirstBinding && !reuseFirstBindingQr
|
||||
const wantsRebind = (input.intent === 'rebind' || input.forceRebind === true) && canStartRebind
|
||||
if (!wantsFirstBinding && !wantsRebind) {
|
||||
return {
|
||||
|
||||
@@ -459,6 +459,14 @@ export async function convergeSemiAutoTaskState(
|
||||
pushParam(meta.column, value)
|
||||
}
|
||||
for (const [column, value] of Object.entries(patch.extra || {})) {
|
||||
if (assignments.some((item) => item.startsWith(`${column} = `))) {
|
||||
// 同一列在类型化字段与 extra 里同时出现会拼出 `col = $1, col = $2`,PG 直接报错。
|
||||
throw createHttpError('半自动任务状态补丁包含重复列', {
|
||||
statusCode: 500,
|
||||
errorCode: 'semi_auto_task_patch_column_duplicated',
|
||||
context: { column },
|
||||
})
|
||||
}
|
||||
if (!EXTRA_WRITABLE_COLUMNS.has(column)) {
|
||||
throw createHttpError('半自动任务状态补丁包含未登记列', {
|
||||
statusCode: 500,
|
||||
|
||||
Reference in New Issue
Block a user