fix(cost-center): 允许移除纯数字等异常人工 SKU

This commit is contained in:
yml2213
2026-11-05 17:29:14 +08:00
parent a024a71df3
commit f67f00a7a5
2 changed files with 9 additions and 2 deletions
@@ -569,8 +569,8 @@ export async function deleteManualSkuClassification(
skuKey: string,
): Promise<DeleteManualSkuResult> {
const key = canonicalizeInternalSku(skuKey)
if (!key || !containsCjk(key)) {
throw createHttpError('必须使用包含中文的内部 SKU', {
if (!key) {
throw createHttpError('内部 SKU 不能为空', {
statusCode: 400,
errorCode: 'manual_config_sku_key_required',
})