This commit is contained in:
苏尹岚
2020-11-17 09:21:57 +08:00
parent cbf15f6c49
commit 8113852ecc

View File

@@ -140,7 +140,7 @@ func (p *PayHandler) CreateRefund() (err error) {
} else {
param.Amount = p.Order.PayPrice * place.DividePercentage / 100 //手续费
}
if authInfo, err := p.Ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeWxApp {
if authInfo, err := p.Ctx.GetV2AuthInfo(); err == nil {
param.OpenID = authInfo.GetAuthID()
}
globals.SugarLogger.Debugf("CreateRefund wx param: %v", utils.Format4Output(param, false))