完成分享存储

This commit is contained in:
augushong
2021-06-19 23:29:18 +08:00
parent 1be98f85b6
commit 36c059e5be
9 changed files with 389 additions and 252 deletions

25
app/model/ShareFiles.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace app\model;
use think\facade\App;
use think\Model;
/**
* @mixin \think\Model
*/
class ShareFiles extends Model
{
public static function build_safe_path($save_name)
{
$root_dir = App::getRootPath();
$safe_dir = '/safe/';
return $root_dir . $safe_dir . $save_name;
}
//
}