|
...
|
...
|
@@ -226,13 +226,13 @@ class CropImage extends Command |
|
|
|
* @time :2025/5/8 14:59
|
|
|
|
*/
|
|
|
|
public function saveMysql($project_id,$size,$image_type,$path,$mime = ''){
|
|
|
|
$hash = hash_file('sha256', $path);
|
|
|
|
$hash = md5($path);
|
|
|
|
$imageModel = new Image();
|
|
|
|
$info = $imageModel->read(['hash'=>$hash,'project_id'=>$project_id]);
|
|
|
|
$data = [
|
|
|
|
'path' => $path,
|
|
|
|
'size' => $size,
|
|
|
|
'hash' => hash_file('sha256', $path),
|
|
|
|
'hash' => $hash,
|
|
|
|
'type' => $image_type,
|
|
|
|
'refer'=> 0,
|
|
|
|
'mime' => $mime,
|
...
|
...
|
|