Browse Source

证书

master
黄梓健 5 years ago
parent
commit
28dd1489ad
  1. 82
      services/pay/bindata.go
  2. 8
      services/pay/client.go
  3. 15
      utils/define/define.go

82
services/pay/bindata.go
File diff suppressed because it is too large
View File

8
services/pay/client.go

@ -12,15 +12,15 @@ import (
// 配置 client
func Client() (*core.Client, error) {
certP12, err := Asset("apiclient_cert.p12")
certP12, err := Asset("cacert/apiclient_cert.p12")
if err != nil {
return nil, err
}
certPem, err := Asset("apiclient_cert.pem")
certPem, err := Asset("cacert/apiclient_cert.pem")
if err != nil {
return nil, err
}
keyPem, err := Asset("apiclient_key.pem")
keyPem, err := Asset("cacert/apiclient_key.pem")
if err != nil {
return nil, err
}
@ -45,5 +45,5 @@ func Client() (*core.Client, error) {
},
}
return core.NewSubMchClient(define.PayAppId, define.MchId, define.ApiKey, "", define.SubMchId, httpClient), nil
return core.NewSubMchClient(define.AppId, define.MchId, define.ApiKey, "", define.SubMchId, httpClient), nil
}

15
utils/define/define.go

@ -90,19 +90,20 @@ var DefaultOrderNo = 10000000000
// 微信常量
const (
// 欧轩互动 -> 普通商户
// ApiKey = `2c82c64ceec6ba89ffc9f593c671a12f`
ApiKey = `2c82c64ceec6ba89ffc9f593c671a12f`
SubAppId = `wx7b0bcf476552c5e9`
Secret = `f6aabdd40ea25272f4442603a7dc8028`
// MchId = `1394404502`
// SubMchId = ``
AppId = `wx7b0bcf476552c5e9`
MchId = `1394404502`
SubMchId = ``
// 欧轩 -> 服务商
AppId = `wx662a1633304bfd42`
ApiKey = `6e281c8b5430c674034594cab789334F`
//AppId = `wx662a1633304bfd42`
//ApiKey = `6e281c8b5430c674034594cab789334F`
//AppId = `wx662a1633304bfd42`
//Secret = `7e4ecfe06ad1e075c210059d5b0162a3`
MchId = `1441266702`
SubMchId = `1394404502`
//MchId = `1441266702`
//SubMchId = `1394404502`
// 认证服务号:欧轩(用于申请微信服务商)
// AppID:wx662a1633304bfd42
// 密钥:7e4ecfe06ad1e075c210059d5b0162a3

Loading…
Cancel
Save