修复对外输出扩展数据

This commit is contained in:
白茶清欢 2024-09-24 15:10:37 +08:00
parent 29b0eaa6b3
commit 01c2fdf5a2

View File

@ -54,6 +54,7 @@ func ConvertDefaultConfig(cfg *HttpHandleConfig) {
// Date : 16:55 2024/7/23 // Date : 16:55 2024/7/23
func GetHttpHandleConfig() *HttpHandleConfig { func GetHttpHandleConfig() *HttpHandleConfig {
return &HttpHandleConfig{ return &HttpHandleConfig{
EnableExtensionOutput: inputHttpHandleConfig.EnableExtensionOutput,
RequestIDField: wrapper.TernaryOperator.String( RequestIDField: wrapper.TernaryOperator.String(
nil == inputHttpHandleConfig || inputHttpHandleConfig.RequestIDField == "", nil == inputHttpHandleConfig || inputHttpHandleConfig.RequestIDField == "",
consts.GinRequestIDField, consts.GinRequestIDField,