mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
add Middleware
This commit is contained in:
@@ -40,7 +40,7 @@ class DataProvider
|
||||
return ZMBuf::globals("http_reverse_link");
|
||||
}
|
||||
|
||||
private static function getJsonData(string $string) {
|
||||
public static function getJsonData(string $string) {
|
||||
if(!file_exists(self::getDataConfig().$string)) return [];
|
||||
return json_decode(Co::readFile(self::getDataConfig().$string), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user