* [task#126735,done,0.3h] fix webhook log error.

This commit is contained in:
tianshujie
2024-08-22 09:11:13 +08:00
committed by 刘梦艺
parent 63cb4e966d
commit ed4a468897
+1 -1
View File
@@ -122,7 +122,7 @@ class webhookTao extends webhookModel
}
elseif(isset($data->content))
{
$text = $data->content->text;
$text = empty($data->content->text) ? '' : $data->content->text;
$text = substr($text, 0, strpos($text, '(http')) ? substr($text, 0, strpos($text, '(http')) : zget($users, $data->user, $this->app->user->realname) . $this->lang->action->label->{$action->action} . $this->lang->action->objectTypes[$action->objectType] . "[#{$action->objectID}::{$object->$field}]";
}
else