From e2f4d52e61a7e487792ddc85dda0967d2d56e58e Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Fri, 23 Sep 2022 02:55:18 +0000 Subject: [PATCH] * Fix feedback#967. --- module/webhook/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/webhook/model.php b/module/webhook/model.php index 768de6db0a..ce5c32ad80 100644 --- a/module/webhook/model.php +++ b/module/webhook/model.php @@ -187,6 +187,7 @@ class webhookModel extends model ->trim('agentId,appKey,appSecret,wechatAgentId,wechatCorpId,wechatCorpSecret,feishuAppId,feishuAppSecret') ->remove('allParams, allActions') ->get(); + $webhook->domain = trim($webhook->domain, '/'); $webhook->params = $this->post->params ? implode(',', $this->post->params) . ',text' : 'text'; if($webhook->type == 'dinguser') @@ -260,7 +261,8 @@ class webhookModel extends model ->trim('agentId,appKey,appSecret,wechatAgentId,wechatCorpId,wechatCorpSecret,feishuAppId,feishuAppSecret') ->remove('allParams, allActions') ->get(); - $webhook->params = $this->post->params ? implode(',', $this->post->params) . ',text' : 'text'; + $webhook->domain = trim($webhook->domain, '/'); + $webhook->params = $this->post->params ? implode(',', $this->post->params) . ',text' : 'text'; if($webhook->type == 'dinguser') {