|
|
@ -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 |
|
|
|
} |