feat(worker-platform): 增加寄卖白名单总开关,关闭后全员可发布

资金配置与打手列表可一键切换白名单模式;发布校验、打手端入口按总开关放行。同时收紧未开通判定、关权限确认和开通弹窗文案。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-21 14:23:00 +08:00
co-authored by Cursor
parent 937e51db6b
commit 9298b31b9b
17 changed files with 342 additions and 56 deletions
@@ -0,0 +1,12 @@
/**
* 打手端是否允许进入「发布寄卖」表单。
* 资料未就绪时一律不放行,避免白名单模式下先闪出表单。
*/
export function canWorkerPublishConsignment(input: {
profileReady: boolean
whitelistEnabled: boolean
workerCanConsign: boolean
}): boolean {
if (!input.profileReady) return false
return !input.whitelistEnabled || input.workerCanConsign
}