shenjiachi 6 days ago
parent
commit
cdbaf96411
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/mw/mw_check_sign.go

+ 2
- 0
app/mw/mw_check_sign.go View File

@@ -7,6 +7,7 @@ import (
"applet/app/lib/aes/md"
"applet/app/utils"
"errors"
"fmt"
"github.com/gin-gonic/gin"
)

@@ -16,6 +17,7 @@ func CheckSign(c *gin.Context) {
err := aes.CheckSign(c)
if err != nil {
if cfg.Prd {
fmt.Println("签名问题:" + err.Error())
e.OutErr(c, 400, errors.New("请求失败~~"))
} else {
e.OutErr(c, 400, "验签失败: "+err.Error())


Loading…
Cancel
Save