From 5a038fb0b6ac4cb95d3b9ec16bf661fdc4854808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 3 Sep 2020 14:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/function.php b/function.php index a310f418..ef6baea4 100644 --- a/function.php +++ b/function.php @@ -19,9 +19,9 @@ if (!function_exists('make')) { function make($name, $default) { if (Snowflake::has($name)) { - $class = Snowflake::get()->$name; + $class = Snowflake::app()->$name; } else if (Snowflake::has($default)) { - $class = Snowflake::get()->$default; + $class = Snowflake::app()->$default; } else { $class = Snowflake::createObject($default); Snowflake::setAlias($name, $default);