fix:打开安全校验
This commit is contained in:
parent
284624bcba
commit
8414a57661
|
|
@ -79,11 +79,11 @@ func (s *CapabilityService) ProductIngest(c *fiber.Ctx) error {
|
||||||
|
|
||||||
// 时间窗口校验
|
// 时间窗口校验
|
||||||
if ts != "" && !util.IsInTimeWindow(ts, 5*time.Minute) {
|
if ts != "" && !util.IsInTimeWindow(ts, 5*time.Minute) {
|
||||||
// return errorcode.AuthNotFound
|
return errorcode.AuthNotFound
|
||||||
}
|
}
|
||||||
// token校验
|
// token校验
|
||||||
if token == "" || token != "A7f9KQ3mP2X8LZC4R5e" {
|
if token == "" || token != "A7f9KQ3mP2X8LZC4R5e" {
|
||||||
// return errorcode.KeyErr()
|
return errorcode.KeyErr()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解析请求参数
|
// 解析请求参数
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue