Browse Source

修复调用方法

master v0.3.1
guzeng 2 years ago
parent
commit
a237f130a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pay.go

+ 1
- 1
pay.go View File

@ -46,7 +46,7 @@ func GetPayResult(dbname, order_sn, wx_appid, wx_mch_id, wx_mch_serial_no, wx_mc
log.Println("平台证书有误:", err)
return false, nil, errors.New("平台证书不正确")
}
client, err = CreateClient(ctx, wechatPayCertificate, privateKey, wx_mch_id, wx_mch_serial_no)
client, err = CreatePayClient(ctx, wechatPayCertificate, privateKey, wx_mch_id, wx_mch_serial_no)
if err != nil {
log.Println("create pay client error:", err)
return false, nil, errors.New("构造失败")


Loading…
Cancel
Save