diff --git a/app/Http/functions.php b/app/Http/functions.php index 9d6fdec..8712db0 100755 --- a/app/Http/functions.php +++ b/app/Http/functions.php @@ -696,5 +696,9 @@ function getVar($text) { $pattern = '/\{.*?\}/'; preg_match_all($pattern, $text, $matches); - return $matches[0] ?? ''; + if (count($matches[0]) > 0) { + // 数组转英文逗号分割的字符串 + return implode(',', $matches[0]); + } + return ''; }