|
@@ -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)}
|