dever 6 years ago
parent
commit
8eb81645d7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/View.php

+ 2 - 1
src/View.php

@@ -104,10 +104,11 @@ class View
                 if (!strstr($v['file'], 'http')) {
                     if (isset($data['config']) && $data['config']['save_type'] >= 3 && isset($data['yun'])) {
                         $data['file'][$k]['url'] = $data['yun']['host'] . $v['file'];
+                    } elseif (strstr($v['file'], '{uploadRes}')) {
+                        $data['file'][$k]['url'] = Dever::upload($v['file']);
                     } else {
                         $data['file'][$k]['url'] = Dever::upload('{uploadRes}' . $v['file']);
                     }
-                    
                 } else {
                     $data['file'][$k]['url'] = $v['file'];
                 }