diff --git a/main.go b/main.go index 21872ad..6ec345a 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ func handlePost(w http.ResponseWriter, r *http.Request) { http.Error(w, "Error reading request body", http.StatusBadRequest) return } - fmt.Println("handlePost:", string(body)) + // fmt.Println("handlePost:", string(body)) // 解码 JSON 数据到 map[string]interface{} 类型的变量 var data map[string]interface{} err = json.Unmarshal(body, &data) diff --git a/utils/router.go b/utils/router.go index 1a6e44a..87aece1 100644 --- a/utils/router.go +++ b/utils/router.go @@ -27,7 +27,7 @@ func Router(data map[string]interface{}) { worker := workers.NewWorker(parms, fmt.Sprintf("%d", int(uid)), fmt.Sprintf("%d", int(gid)), role, fmt.Sprintf("%d", int(mid)), raw_msg) // fmt.Println("router:", parms[0]) - fmt.Println("CheckPermission:", worker.CheckPermission()) + // fmt.Println("CheckPermission:", worker.CheckPermission()) // ans := NewStdAns(parms[0], fmt.Sprintf("%d", int(uid)), fmt.Sprintf("%d", int(gid)), role, fmt.Sprintf("%d", int(mid)), raw_msg) message := worker.CheckPermission() if message == "0" {