enhance(debug):删除已经无用的调试日志输出。
This commit is contained in:
parent
ff9df8f99c
commit
e3597cf866
|
@ -3,7 +3,6 @@ package security
|
|||
import (
|
||||
"electricity_bill_calc/cache"
|
||||
"electricity_bill_calc/model"
|
||||
"log"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
@ -69,7 +68,6 @@ func ManagementAuthorize(c *gin.Context) {
|
|||
// ! 通过该中间件以后,是可以保证上下文中一定具有用户会话信息的。
|
||||
func OPSAuthorize(c *gin.Context) {
|
||||
session, exists := c.Get("session")
|
||||
log.Printf("[debug]session exists: %v, %v \n", exists, session)
|
||||
if !exists {
|
||||
c.AbortWithStatus(http.StatusForbidden)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user