作者 lyh

gx

@@ -51,8 +51,6 @@ class ImageController @@ -51,8 +51,6 @@ class ImageController
51 * @time :2023/5/11 17:19 51 * @time :2023/5/11 17:19
52 */ 52 */
53 public function index($hash = '', $w = 0 ,$h = 0 ){ 53 public function index($hash = '', $w = 0 ,$h = 0 ){
54 - var_dump(11111);  
55 - die();  
56 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) { 54 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
57 header("HTTP/1.1 304 Not Modified"); 55 header("HTTP/1.1 304 Not Modified");
58 exit; 56 exit;
@@ -62,8 +60,6 @@ class ImageController @@ -62,8 +60,6 @@ class ImageController
62 if ($dotIndex !== false) { 60 if ($dotIndex !== false) {
63 $hash = substr($dotIndex, 0, $dotIndex); // 删除小数点及其后面的字符 61 $hash = substr($dotIndex, 0, $dotIndex); // 删除小数点及其后面的字符
64 } 62 }
65 - var_dump($hash);  
66 - die();  
67 $info = $imageModel->read(['hash'=>$hash]); 63 $info = $imageModel->read(['hash'=>$hash]);
68 if ($info === false) { 64 if ($info === false) {
69 $this->response('指定图片不存在!', Code::USER_ERROR); 65 $this->response('指定图片不存在!', Code::USER_ERROR);