新增转账场景报告信息支持,针对特定场景ID(1005)传递岗位类型和报酬说明,以满足微信接口要求。同时,优化转账请求的通知URL配置逻辑,提升代码的可读性和可维护性。

This commit is contained in:
乘风
2026-02-10 15:09:26 +08:00
parent fef796e4d5
commit c38de4ad9b
3 changed files with 11 additions and 0 deletions

4
soul-api/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
tmp/
soul-api
server.exe
soul-api.exe

View File

@@ -172,6 +172,13 @@ func InitiateTransferByFundApp(params FundAppTransferParams) (*FundAppTransferRe
TransferRemark: params.Remark,
NotifyUrl: params.NotifyURL,
}
// 1005=佣金报酬:微信要求同时传 transfer_scene_report_infos岗位类型与报酬说明分开两条
if params.TransferSceneId == "1005" {
req.TransferSceneReportInfos = []fundAppRequest.TransferSceneReportInfo{
{InfoType: "岗位类型", InfoContent: "会员"},
{InfoType: "报酬说明", InfoContent: "提现"},
}
}
if req.NotifyUrl == "" && cfg.WechatTransferURL != "" {
req.NotifyUrl = cfg.WechatTransferURL
}

Binary file not shown.