* Rewrite webhook edit ui.

This commit is contained in:
wangyidong
2023-11-02 10:36:02 +08:00
parent feac8d65b7
commit 4f021b93d5
11 changed files with 408 additions and 4 deletions
+2 -1
View File
@@ -264,7 +264,8 @@ class webhookModel extends model
->remove('allParams, allActions')
->get();
$webhook->domain = trim($webhook->domain, '/');
$webhook->params = $this->post->params ? implode(',', $this->post->params) . ',text' : 'text';
$webhook->params = $this->post->params ? implode(',', $this->post->params) : 'text';
if(!str_contains($webhook->params, 'text')) $webhook->params .= ',text';
if($webhook->type == 'dinguser')
{