LingxinMeng 11 mesiacov pred
rodič
commit
fa1163f93f

+ 1 - 1
aarch64/plugin-compile/main/main.go

@@ -28,7 +28,7 @@ func init() {
 func main() {
 	mux := http.NewServeMux()
 	mux.Handle("/compile", h_validate_request_header.HeaderValidationMiddleware(&handler.CompileHandler{}))
-	mux.Handle("/pji_compile", h_validate_request_header.HeaderValidationMiddleware(&handler.CompileHandler{}))
+	mux.Handle("/pji_compile", h_validate_request_header.HeaderValidationMiddleware(&handler.PjiCompileHandler{}))
 	err := http.ListenAndServe(":"+util.ToString(servicePort), mux)
 	if err != nil {
 		c_log.GlobalLogger.Error("程序崩溃监听端口 " + util.ToString(servicePort) + " 失败。")

+ 3 - 2
aarch64/plugin-compile/package/handler/compile_plugin.go

@@ -30,6 +30,7 @@ type Device struct {
 type CompileHandler struct{}
 
 func (h *CompileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+	c_log.GlobalLogger.Error("CompileHandler 开始处理。")
 
 	// 1 校验参数
 	queryParams := r.URL.Query()
@@ -112,8 +113,8 @@ func (h *CompileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 // PjiCompileHandler implements http.Handler
 type PjiCompileHandler struct{}
 
-func (h *PjiCompileHandler) ServeHTTP2(w http.ResponseWriter, r *http.Request) {
-
+func (h *PjiCompileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+	c_log.GlobalLogger.Error("PjiCompileHandler 开始处理。")
 	// 1 校验参数
 	queryParams := r.URL.Query()
 	goObjectKey := queryParams.Get("goObjectKey")