refactor: 调整图片上传

This commit is contained in:
2025-02-19 16:28:47 +08:00
parent 5655fd978b
commit 6dbc9ecc34
6 changed files with 86 additions and 74 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\SysImageBaseModel;
/**
* 图片上传模型
* @mixin \think\Model
*/
class SysImageModel extends SysImageBaseModel
{
// 根据md5获取图片
public function scopeMd5($query, $md5)
{
$query->where('image_md5', '=', $md5);
}
}