作者 lyh

gx

... ... @@ -51,8 +51,6 @@ class ImageController
* @time :2023/5/11 17:19
*/
public function index($hash = '', $w = 0 ,$h = 0 ){
var_dump(11111);
die();
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
header("HTTP/1.1 304 Not Modified");
exit;
... ... @@ -62,8 +60,6 @@ class ImageController
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);
... ...