微信红包

This commit is contained in:
ziming 2025-11-05 18:30:21 +08:00
parent 442d51a364
commit 5e2e300333
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ func buildWx(wx *Wechat) (*transfer.Transfer, error) {
return nil, fmt.Errorf("商户ID[%s]获取目的地址有误[%v]", wx.MchID, err) return nil, fmt.Errorf("商户ID[%s]获取目的地址有误[%v]", wx.MchID, err)
} }
filePath := fmt.Sprintf("%s/cert/%s", dir, wx.MchID) filePath := fmt.Sprintf("%s/cert/wechat/%s", dir, wx.MchID)
if !helper.FileExists(filePath) { if !helper.FileExists(filePath) {
panic(fmt.Sprintf("商户ID[%s]微信密钥证书信息不存在,请联系技术人员处理", wx.MchID)) return nil, fmt.Errorf("商户ID[%s]微信密钥证书信息不存在[%s],请联系技术人员处理", wx.MchID, filePath)
} }
cc, err := utils.CreateMchConfig( cc, err := utils.CreateMchConfig(