diff --git a/miniapp/pages/mine/earnings.vue b/miniapp/pages/mine/earnings.vue index 1d01731..fd50859 100644 --- a/miniapp/pages/mine/earnings.vue +++ b/miniapp/pages/mine/earnings.vue @@ -301,7 +301,10 @@ export default { success: (res) => { console.log('[确认收款] 成功', res) uni.showToast({ title: '收款成功', icon: 'success' }) - this.loadData() + // 立即从列表移除,给用户即时反馈 + this.pendingConfirms = this.pendingConfirms.filter(i => i.id !== item.id) + // 后台静默刷新数据 + setTimeout(() => { this.loadData() }, 1000) }, fail: (res) => { console.error('[确认收款] 失败', res) diff --git a/server/Services/WxPayService.cs b/server/Services/WxPayService.cs index 5b888b5..05ed60a 100644 --- a/server/Services/WxPayService.cs +++ b/server/Services/WxPayService.cs @@ -186,12 +186,16 @@ public class WxPayService { appid = _appId, out_bill_no = outBillNo, - transfer_scene_id = "1002", // 佣金报酬场景 + transfer_scene_id = "1005", // 佣金报酬场景 openid = openId, transfer_amount = amountFen, transfer_remark = remark, notify_url = notifyUrl, - user_recv_perception = "跑腿提现" // 用户收款时看到的描述 + transfer_scene_report_infos = new[] + { + new { info_type = "岗位类型", info_content = "跑腿员" }, + new { info_type = "报酬说明", info_content = "跑腿配送佣金" } + } }; var json = JsonSerializer.Serialize(requestBody);