rabin 3 years ago
parent
commit
4549dc22b3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/collection/lib/Create.php

+ 8 - 0
app/collection/lib/Create.php

@@ -186,6 +186,14 @@ class Create
         foreach ($pic as $k => $v) {
             $where['pic_key'] = md5($v);
             $param['pic'] = $v;
+            if (strstr($v, '}')) {
+                $temp = explode('}', $v);
+                $v = $temp[1];
+            }
+            $file = Dever::db('upload/file')->find(array('file' => $v));
+            if ($file) {
+                $param['pic_info'] = $file['width'] . ',' . $file['height'] . ',' . $file['size'];
+            }
 
             Dever::upinto($table, $where, $param);
             Dever::load('collection/lib/content')->updateTypeId($id, '', $where);