rabin 6 年之前
父节点
当前提交
64b256ce9e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/View.php

+ 3 - 1
src/View.php

@@ -52,7 +52,9 @@ class View
         if ($data['file']) {
             foreach ($data['file'] as $k => $v) {
                 $data['file'][$k]['url'] = Dever::upload('{uploadRes}' . $v['file']);
-                $data['file'][$k]['pic'] = Dever::upload('{uploadRes}' . $v['file']);
+                if (!isset($v['pic'])) {
+                    $data['file'][$k]['pic'] = Dever::upload('{uploadRes}' . $v['file']);
+                }
             }
         }