webman迁移
This commit is contained in:
@@ -3,6 +3,15 @@
|
||||
* BuildAdmin Webman 公共函数
|
||||
*/
|
||||
|
||||
// mb_split 兼容:mbstring 扩展未启用时,Illuminate 的 Str::studly 会报错,用 preg_split 兜底
|
||||
if (!function_exists('mb_split')) {
|
||||
function mb_split(string $pattern, string $string, int $limit = -1): array
|
||||
{
|
||||
$result = @preg_split('#' . $pattern . '#u', $string, $limit);
|
||||
return $result !== false ? $result : [];
|
||||
}
|
||||
}
|
||||
|
||||
use support\Response;
|
||||
|
||||
if (!function_exists('env')) {
|
||||
|
||||
Reference in New Issue
Block a user