Skip to content

Commit ec058ca

Browse files
committed
优化#27 自定义拦截增加Post参数
1 parent c198812 commit ec058ca

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

modules/customize.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,25 @@ func (c *Customize) getConfigHelpCN(request *http.Request) core.Response {
717717
"hint": "示例:xiaoming",
718718
},
719719
},
720+
{
721+
"type": "post_param",
722+
"text": "POST请求参数",
723+
"operators": []string{"eq", "neq", "prefix", "suffix", "like", "regexp"}, // 可用的运算符
724+
"left_factor_enabled": true, // 是否启用左运算数
725+
"right_factor_enabled": true, // 是否启用右运算数
726+
"left_widget": map[string]any{
727+
"type": "text", // 组件类型
728+
"value": "", // 可选值
729+
"placeholder": "请输入参数名称", // 默认占位文本
730+
"hint": "示例:username",
731+
}, // 组件1
732+
"right_widget": map[string]any{
733+
"type": "text", // 组件类型
734+
"value": "", // 可选值
735+
"placeholder": "请输入参数值", // 默认占位文本
736+
"hint": "示例:xiaoming",
737+
}, // 组件2
738+
},
720739
{
721740
"type": "request_header",
722741
"text": "请求头",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy