01HuiCode
每一处改动,逐行可审
Agent 写的行带标记,接受还是拒绝由你决定,状态栏随时汇总审到哪里。
12
export function calcDiscount(order: Order) {13
const total = sum(order.items)14−
if (total >= 300) return 3014+
const off = Math.floor(total / 300) * 3015+
return Math.min(off, 90)16
}17
18
export const fmt = (n: number) =>19−
'¥' + n.toFixed(2)19+
'¥' + Math.round(n)2 处改动 · 待你审✓2 处改动1 接受1 拒绝