修改签名头
Build docker and publish / build (20.15.1) (push) Successful in 7m44s

This commit is contained in:
2026-03-05 23:31:45 -08:00
parent d575df9529
commit 6e13e67dc8
9 changed files with 416 additions and 159 deletions
+1 -7
View File
@@ -46,15 +46,9 @@ func SignatureMiddleware(srvCtx *svc.ServiceContext) func(c *gin.Context) {
c.Next()
return
}
if c.GetHeader("X-Signature-Enabled") != "1" {
c.Next()
return
}
appId := c.GetHeader("X-App-Id")
if appId == "" {
result.HttpResult(c, nil, xerr.NewErrCode(xerr.InvalidAccess))
c.Abort()
c.Next()
return
}