增加拼接public的方法

This commit is contained in:
2024-02-22 13:48:13 +08:00
parent 586d53d585
commit f4c1fc9210
2 changed files with 7 additions and 2 deletions

View File

@@ -6,6 +6,11 @@ use think\facade\App;
class PathToolsBase
{
public static function publicPath($save_name)
{
return App::getRootPath() . 'public' . DS . $save_name;
}
/**
* 系统生成的文件,这些文件应当是可以任意删除的.
*