支付宝红包
This commit is contained in:
parent
57c15e104a
commit
7eed8473cc
|
@ -3,14 +3,13 @@ package alipay
|
|||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
)
|
||||
|
||||
// getMchCertSN 提取证书序列号
|
||||
func getMchCertSN(certPath string) (string, error) {
|
||||
certData, err := ioutil.ReadFile(certPath)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to read the cert file: %s", err)
|
||||
return "", fmt.Errorf("Failed to read the cert file: %s", err)
|
||||
}
|
||||
|
||||
cert, err := getCert(certData)
|
||||
|
|
Loading…
Reference in New Issue