优化通用 api 中文

This commit is contained in:
yml2213
2026-07-09 19:08:34 +08:00
parent f8a1b992af
commit 179f34408b
@@ -263,14 +263,41 @@ function formatKuaishouOpenApiLabel(method: unknown): string {
function resolveKuaishouOpenApiName(method: unknown): string {
const apiMethod = String(method || '').trim()
const names: Record<string, string> = {
'open.order.cursor.list': '获取订单列表v2',
'open.seller.order.close': '关闭订单',
'open.seller.order.fee.detail': '获取订单费用详情',
'open.order.detail': '订单详情v2',
'open.seller.order.refund.detail': '售后单详情',
'open.seller.order.refund.fee.detail': '退款费用详情',
'open.seller.order.refund.approve': '商家同意退款',
'open.seller.order.refund.pcursor.list': '售后单列表',
'open.seller.order.refund.disagree.refund': '商家不同意退款',
'open.item.get': '获取商品详情',
'open.item.new': '商品新增',
'open.item.edit': '编辑商品',
'integration.item.stock.deduct': '商品库存扣减',
'integration.item.stock.query': '商品库存查询',
'open.item.shelf.status.update': '商品上下架管理',
'open.item.list.get': '查询商品列表',
'open.shop.poi.getPoiDetailByOuterPoi': '通过图商 POI 获取快手 POI 详情',
'integration.callback.virtual.eticket.send': '电子凭证发货回调',
'integration.callback.virtual.eticket.consume': '电子凭证核销回调',
'integration.callback.virtual.eticket.destroy': '电子凭证销毁回调',
'integration.callback.virtual.eticket.reverse': '电子凭证冲正回调',
'open.virtual.eticket.checkavailable': '检查电子凭证有效性',
'open.seller.order.refund.pcursor.list': '售后单列表',
'open.seller.order.refund.approve': '商家同意退款',
'open.seller.order.refund.disagree.refund': '商家不同意退款',
'kwaishop_refund_addRefund': '新增退款单消息',
'kwaishop_refund_updateRefund': '退款单更新消息',
'kwaishop_aftersales_addRefund': '售后单新增消息',
'kwaishop_order_addOrder': '订单新增消息',
'kwaishop_order_statusChange': '订单状态变更消息',
'kwaishop_order_totalFeeChange': '订单费用变更消息',
'kwaishop_order_addNote': '订单备注消息',
'KwaishopVirtualEticketSendService': '快手电子凭证通知发货',
'KwaishopVirtualEticketQueryService': '电子凭证查询发码结果或券码状态',
'KwaishopDigitalETicketDestoryService': '电子凭证发起销毁',
'integration.virtual.eticket.send': '电子凭证通知发码',
'integration.virtual.eticket.query': '电子凭证查询发码结果或券码状态',
'integration.virtual.eticket.destroy': '电子凭证发起销毁',
}
return names[apiMethod] || ''