作者 lyh

gx

@@ -51,12 +51,12 @@ class ImageController @@ -51,12 +51,12 @@ 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();
54 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) { 56 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
55 header("HTTP/1.1 304 Not Modified"); 57 header("HTTP/1.1 304 Not Modified");
56 exit; 58 exit;
57 } 59 }
58 - var_dump(11111);  
59 - die();  
60 $imageModel = new ImageModel(); 60 $imageModel = new ImageModel();
61 $dotIndex = strpos($hash, '.'); 61 $dotIndex = strpos($hash, '.');
62 if ($dotIndex !== false) { 62 if ($dotIndex !== false) {