rabin 6 years ago
parent
commit
64b256ce9e
1 changed files with 3 additions and 1 deletions
  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']);
+                }
             }
         }