Skip to content

Commit

Permalink
✨ 上传的图片已存在将会直接返回该图片地址 (Closed #30)
Browse files Browse the repository at this point in the history
通过文件md5校验,上传的图片已存在将会直接返回该图片地址,图片不会重复上传
  • Loading branch information
0xxb committed Jan 8, 2020
1 parent 406040d commit 83cbc57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion application/index/controller/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ public function execute($user = null)
}

exist:

$data = [
'name' => $image->getInfo('name'),
'url' => $url,
Expand Down

0 comments on commit 83cbc57

Please sign in to comment.