From 7eed8473ccd65eb43d8c3038265933c5336381d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Mon, 29 Sep 2025 16:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E7=BA=A2=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/alipay/mch_cert.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/alipay/mch_cert.go b/utils/alipay/mch_cert.go index 26e2e10..b27ab94 100644 --- a/utils/alipay/mch_cert.go +++ b/utils/alipay/mch_cert.go @@ -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)