Commit a440b760 by yemin

no message

parent 7f2c922b
...@@ -97,7 +97,7 @@ func (s *WechatPartnerPayClient) getWxPayClient() *core.Client { ...@@ -97,7 +97,7 @@ func (s *WechatPartnerPayClient) getWxPayClient() *core.Client {
// AnalysisPayNotifyResult 解析支付通知结果 // AnalysisPayNotifyResult 解析支付通知结果
// https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_5_5.shtml // https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_5_5.shtml
func (s *WechatPartnerPayClient) AnalysisPayNotifyResult(request *http.Request) (*notify.Request, *payments.Transaction, error) { func (s *WechatPartnerPayClient) AnalysisPayNotifyResult(request *http.Request) (*notify.Request, *payments.Transaction, error) {
certVisitor := downloader.MgrInstance().GetCertificateVisitor(*s.MchId) certVisitor := downloader.MgrInstance().GetCertificateVisitor(*s.SpMchId)
handler, e := notify.NewRSANotifyHandler(*s.ApiKey, verifiers.NewSHA256WithRSAVerifier(certVisitor)) handler, e := notify.NewRSANotifyHandler(*s.ApiKey, verifiers.NewSHA256WithRSAVerifier(certVisitor))
if e != nil { if e != nil {
return nil, nil, e return nil, nil, e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment