f
This commit is contained in:
@@ -692,6 +692,8 @@ func (y *YunYinSignPayService) CreateYunYinSignPayOrder(ctx context.Context, use
|
||||
|
||||
// 2. 构建参与者列表
|
||||
logx.Infof("[云印签API] CreateYunYinSignPayOrder: 步骤3-构建参与者列表,订单号: %s", outTradeNo)
|
||||
// 使用固定的虚拟手机号作为签署方2的占位手机号(flowType=2时,后续会在小程序端通过授权更新)
|
||||
virtualMobile := "18111111111"
|
||||
participantList := []ParticipantInfo{
|
||||
// 签署方1:我方
|
||||
{
|
||||
@@ -704,7 +706,7 @@ func (y *YunYinSignPayService) CreateYunYinSignPayOrder(ctx context.Context, use
|
||||
// 签署方2:用户(支付方)
|
||||
{
|
||||
ParticipantFlag: "签署方2",
|
||||
PsnAccount: userMobile,
|
||||
PsnAccount: virtualMobile, // 使用固定的虚拟手机号(占位符)
|
||||
PsnName: func() string {
|
||||
if userName != "" {
|
||||
return userName
|
||||
@@ -719,8 +721,8 @@ func (y *YunYinSignPayService) CreateYunYinSignPayOrder(ctx context.Context, use
|
||||
},
|
||||
},
|
||||
}
|
||||
logx.Infof("[云印签API] CreateYunYinSignPayOrder: 参与者列表构建完成,订单号: %s, 签署方1: %s(%s), 签署方2: %s(%s), 金额: %.2f",
|
||||
outTradeNo, y.config.Name, y.config.Mobile, userName, userMobile, amount)
|
||||
logx.Infof("[云印签API] CreateYunYinSignPayOrder: 参与者列表构建完成,订单号: %s, 签署方1: %s(%s), 签署方2: %s(虚拟手机号:%s,实际手机号:%s), 金额: %.2f",
|
||||
outTradeNo, y.config.Name, y.config.Mobile, userName, virtualMobile, userMobile, amount)
|
||||
|
||||
// 3. 发起签署流程
|
||||
logx.Infof("[云印签API] CreateYunYinSignPayOrder: 步骤4-发起签署流程,订单号: %s, 模板代码: %s", outTradeNo, y.config.TemplateCode)
|
||||
|
||||
Reference in New Issue
Block a user