更新 v1.8.0版本

This commit is contained in:
LyLme 2023-12-17 23:53:13 +08:00
parent 844998c3e0
commit 2e14658639

View File

@ -215,12 +215,12 @@ function yan()
//随机一言文件路径 //随机一言文件路径
if (file_exists($filename)) { if (file_exists($filename)) {
$data = explode(PHP_EOL, file_get_contents($filename)); $data = explode(PHP_EOL, file_get_contents($filename));
$result = str_replace(array( // $result = str_replace(array(
"\r", // "\r",
"\n", // "\n",
"\r\n" // "\r\n"
), '', $data[array_rand($data) ]); // ), '', $data[array_rand($data)]);
return $result; return $data[array_rand($data)];
} }
} }
function rearr($data, $arr) function rearr($data, $arr)