|
...
|
...
|
@@ -56,6 +56,12 @@ class ImageController |
|
|
|
exit;
|
|
|
|
}
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
$dotIndex = strpos($hash, '.');
|
|
|
|
if ($dotIndex !== false) {
|
|
|
|
$hash = substr($dotIndex, 0, $dotIndex); // 删除小数点及其后面的字符
|
|
|
|
}
|
|
|
|
var_dump($hash);
|
|
|
|
die();
|
|
|
|
$info = $imageModel->read(['hash'=>$hash]);
|
|
|
|
if ($info === false) {
|
|
|
|
$this->response('指定图片不存在!', Code::USER_ERROR);
|
...
|
...
|
|