From 46c928f99680c6a81ea3f6fa4c0cf086f4ecef62 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 7 Jul 2025 14:20:34 +0800 Subject: [PATCH] update --- app/Http/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ''; }