fix(consignment): 修掉发布时乱弹内部库存提醒,并把弹窗赏金换算成元
乱弹窗根因:matchPeacekeeperOrderWithInventory 精确匹配判定失败后无条件 fall through 到 部分匹配;而系统/区服/系列/钻级缺失时 compareSpec 返回 unknown(不是 mismatch)会被放行, 于是任何只写了游戏名的订单都命中仓库里全部在库货,表现为"随便发布点什么都会弹一下"。 严格模式(自动提醒)现在要求:① 系统/区服/系列都能确认一致;② 存在正信号(库存配置更高, 或订单压根没提钻级)。"订单没写规格"不再算命中。 同时给 matchPeacekeeperOrderWithInventory / findMatchingPeacekeeperInventories 增加 allowUnspecifiedSpecs 选项:人工履约的服务端复检(运营已人工选定现货)走宽松模式, 标题没写全规格不硬拦、真冲突仍拦,避免收紧自动提醒时把人工履约一起挡掉。 赏金显示:弹窗用 rewardAmount(单位分)直接 toFixed,把 ¥40 显示成 ¥4000; 同文件其他 30 余处均为 /100,仅此处漏了。弹窗内收购成本/履约押金本来就已 /100,核对无误。 验证:用截图里的现货(苹果QQ区怒嚎3钻2璀璨)对照 6 种订单—— "怒嚎"、"苏尔南" 从命中变为不命中;"苹果QQ区怒嚎1钻" 仍按高配充低配提醒; "5钻"(低配充高配)、"安卓微信区怒嚎1钻"(系统/区服不符)不命中。 后端 435 例(新增 3 例、改写 3 例)全绿。
This commit is contained in:
@@ -2941,7 +2941,8 @@ export default function WorkOrdersPanel() {
|
||||
<div>
|
||||
当前工单原定接单赏金:
|
||||
<strong>
|
||||
¥{Number(consignmentInterceptModal.order?.rewardAmount || 0).toFixed(2)}
|
||||
{/* rewardAmount 是分,必须除以 100:这里以前直接 toFixed,把 ¥40 显示成 ¥4000 */}
|
||||
¥{(Number(consignmentInterceptModal.order?.rewardAmount || 0) / 100).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
<div style={{ color: '#389e0d', marginTop: 4 }}>
|
||||
|
||||
Reference in New Issue
Block a user