支付宝红包

This commit is contained in:
李子铭 2025-09-29 16:47:33 +08:00
parent 57c15e104a
commit 7eed8473cc
1 changed files with 1 additions and 2 deletions

View File

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