你好! ![]()
我为我的用户创建了一个横幅,其中包含 form action="url_webhook" 和“发送”按钮。当用户单击按钮时,我的 Discourse 会将信息发送到 webhook URL,但其标头输出中没有单击按钮的 username。如何获取此参数?
<div><b>你好!</b>
<p>请点击按钮通知工作人员</p>
<button id="Send">发送</button>
</div>
你好! ![]()
我为我的用户创建了一个横幅,其中包含 form action="url_webhook" 和“发送”按钮。当用户单击按钮时,我的 Discourse 会将信息发送到 webhook URL,但其标头输出中没有单击按钮的 username。如何获取此参数?
<div><b>你好!</b>
<p>请点击按钮通知工作人员</p>
<button id="Send">发送</button>
</div>
也许可以退一步,说说你到底想完成什么。
当用户单击按钮时,论坛会将 POST 发送到外部 webhook:https://example.com/confirm。因此,我在 request headers 中看不到发送此 POST(单击按钮)的 username。
我需要获取单击按钮的用户的 username。
**示例:**当用户 Alex1 单击 Send 按钮时,我的论坛会将此值发送到 webhook URL:Alex1
抱歉,我的英语不好 ![]()