dever 6 年之前
父節點
當前提交
8eb81645d7
共有 1 個文件被更改,包括 2 次插入1 次删除
  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'];
                 }