rabin 6 年之前
父節點
當前提交
c21940ba19
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/Img.php

+ 2 - 1
lib/Img.php

@@ -51,7 +51,8 @@ class Img
         }
         $file =  Dever::pathDay('upload/poster', false) . md5($filename) . '.jpg';
 
-        if (!is_file($file) || $update == 1) {
+        //if (!is_file($file) || $update == 1) {
+        if (!is_file($file)) {
             $this->img->setType($type);
             $result = $this->img->init($config['background'], $config['param'], true, $file);
             if ($result) {