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