From 2e14658639e9da9a57c36da76d3021919c9737ca Mon Sep 17 00:00:00 2001 From: LyLme Date: Sun, 17 Dec 2023 23:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20v1.8.0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/function.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/function.php b/include/function.php index a78c39c..bab01c2 100644 --- a/include/function.php +++ b/include/function.php @@ -215,12 +215,12 @@ function yan() //随机一言文件路径 if (file_exists($filename)) { $data = explode(PHP_EOL, file_get_contents($filename)); - $result = str_replace(array( - "\r", - "\n", - "\r\n" - ), '', $data[array_rand($data) ]); - return $result; + // $result = str_replace(array( + // "\r", + // "\n", + // "\r\n" + // ), '', $data[array_rand($data)]); + return $data[array_rand($data)]; } } function rearr($data, $arr)