feat: 优化控制台输出 + 修复请求BUG

This commit is contained in:
2025-12-30 14:12:13 +08:00
parent 6201961b61
commit 9acd040db4
7 changed files with 140 additions and 71 deletions

View File

@@ -78,7 +78,10 @@ func (s *server) RequestHandler(uriCfg UriConfig) gin.HandlerFunc {
return
}
// 表单数据
inputValue := reflect.ValueOf(formValue).Elem()
inputValue := reflect.ValueOf(formValue)
if !uriCfg.ParamIsPtr {
inputValue = inputValue.Elem()
}
// 注入公共参数
if err = s.injectCommonParam(ctx, inputValue); nil != err {