* zin: refactor.

This commit is contained in:
sunhao
2024-04-19 11:15:48 +08:00
parent ca52ce3cb5
commit 7e31183abe
+5 -5
View File
@@ -42,13 +42,13 @@ function createWg($name, $args, ?string $fallbackWgName = null): node
$wgVer = getWgVer($name);
$wgName = "\\zin\\$name";
if(in_array($name, h::$h5Tags))
{
return h::$name($args);
}
if(!class_exists($wgName))
{
if(in_array($name, h::$h5Tags))
{
return h::$name($args);
}
include_once dirname(__DIR__) . DS . 'wg' . DS . $name . DS . "v$wgVer.php";
}