rabin 2 years ago
parent
commit
a0007f01e7
1 changed files with 2 additions and 4 deletions
  1. 2 4
      app/collection/lib/Create.php

+ 2 - 4
app/collection/lib/Create.php

@@ -186,10 +186,8 @@ class Create
         foreach ($pic as $k => $v) {
             $where['pic_key'] = md5($v);
             $param['pic'] = $v;
-            if (strstr($v, '}')) {
-                $temp = explode('}', $v);
-                $v = $temp[1];
-            }
+            $info = parse_url($v);
+            $v = ltrim($info['path'], '/');
             $file = Dever::db('upload/file')->find(array('file' => $v));
             if ($file) {
                 $param['pic_info'] = $file['width'] . ',' . $file['height'] . ',' . $file['size'];