Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Feb 5, 2021
1 parent 9053fa7 commit a5d0e7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ZM/Config/ZMConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ private static function loadConfig($name) {
} elseif (file_exists(self::$path . "/" . $name . $ext_name)) {
return self::storeConfig($name, self::$path . "/" . $name . $ext_name, $ext_name);
} else {
self::$last_error = "你已指定环境 '" . self::$env . "', 但是配置文件 " . $name . "." . self::$env . "(.php/.json) 不存在,请检查";
return false;
if ($ext_name == ".json") {
self::$last_error = "你已指定环境 '" . self::$env . "', 但是配置文件 " . $name . "." . self::$env . "(.php/.json) 不存在,请检查";
return false;
}
}
}
}
Expand Down

0 comments on commit a5d0e7d

Please sign in to comment.