fix(cost-center): 允许移除纯数字等异常人工 SKU
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user