修改显示问题

This commit is contained in:
Yeomai committed 2026-09-29 01:22:34 +08:00
1 parent 07a90e860d
commit 88bffaa5d0
5 files changed
+22 -2

No files matched your search

+13 -1
View File
@@ -84,7 +84,14 @@ const fakeWx = http.createServer((req, res) => {
return reply({
errcode: 0,
errmsg: 'ok',
order: { order_id: orderId, status, paid_fee: 10, left_fee: 10, wx_order_id: `wx-${env}-${orderId}` },
order: {
order_id: orderId,
status,
order_type: 0, // 0 普通虚拟支付(7 才是苹果内购)
paid_fee: 10,
left_fee: 10,
wx_order_id: `wx-${env}-${orderId}`,
},
})
}
if (urlPath === '/xpay/notify_provide_goods') {
@@ -336,6 +343,11 @@ async function main() {
[sandboxDelivered.code, '补单专用'],
].sort()
)
// 退款按钮的显隐看订单渠道:普通虚拟支付记成 wxpay,苹果内购记成 apple
assert.deepStrictEqual(
Array.from(new Set(mine.list.map((item) => item.channel))),
['wxpay']
)
const others = await fetchJson(port, '/pay/my', { code: 'code-other' })
assert.deepStrictEqual(others.list, [])