|
@@ -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);
|