Эх сурвалжийг харах

wip:年终报告pdf增加职位id,删除打印

wangkaiyue 2 жил өмнө
parent
commit
3887f9b0cb

+ 1 - 3
core/proxy/broker/outServer/SussBi.go

@@ -99,9 +99,7 @@ func (s *sussBi) Filter(r *ghttp.Request) error {
 		} else if r.Request.Method == http.MethodGet {
 			// 年终报告pdf增加职位id
 			if strings.HasPrefix(r.RequestURI, "/api/meta/services/convertFileToPDF") {
-				newValues, err := url.ParseQuery(r.URL.RawQuery)
-				fmt.Printf("%v err:%v\n", newValues, err)
-				if err == nil && len(newValues) > 0 {
+				if newValues, err := url.ParseQuery(r.URL.RawQuery); err == nil && len(newValues) > 0 {
 					fmt.Println("b")
 					if _, ok := newValues["QUERY_PARAM_M_POSITION_ID"]; ok {
 						newValues["QUERY_PARAM_M_POSITION_ID"] = []string{fmt.Sprintf("%d", ctx.Sess.UserPositionId)}