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