feat: 管理端推送 Webhook 配置与出站推送链路接入

1、修复了管理端设置在推送开关/配置项上的联动与保存问题。

2、新增 OutboundPushHookService、PushHook/InternalPushHook 接口、前端 PushHookConfigPanel 与小程序 pushHook 工具。

3、优化 Analyze/Auth/Test/支付回调触发路径,补充去重迁移脚本与实施文档。

Made-with: Cursor
This commit is contained in:
Ghost
2026-04-15 15:07:36 +08:00
parent c946584a7d
commit cf835ea585
29 changed files with 2964 additions and 111 deletions

View File

@@ -3,6 +3,7 @@
const app = getApp()
const { getEnterpriseIdForApiPayload } = require('./enterpriseContext.js')
const { triggerOrderPaid } = require('./pushHook.js')
function paymentApiBase() {
const b = (app.globalData && app.globalData.apiBase) ? String(app.globalData.apiBase) : ''
@@ -131,6 +132,7 @@ function wxPay(options) {
pollOrderStatus(orderId, 5, 1000, (ok, order) => {
if (ok) {
try { reportCrmTestPaymentAfterSuccess(productType, testResultId, enterpriseId || 0) } catch (e) {}
try { triggerOrderPaid(orderId) } catch (e) {}
try { require('./analytics').reportPayResult(true, { productType: productType || '', orderId, amount }) } catch (e) {}
wx.showToast({
title: '支付成功',