|
|
@ -61,13 +61,11 @@ class FileManager |
|
|
|
foreach ($temFileIdArr as $key => $value) { |
|
|
|
$temFile = TemFile::findOne($value); |
|
|
|
|
|
|
|
if (!$temFile) { |
|
|
|
throw new \Exception('存在查找不到的文件'); |
|
|
|
} |
|
|
|
|
|
|
|
$res = self::saveNewFile($temFile, $ownId, $ownType); |
|
|
|
if ($key == 0) { |
|
|
|
$firstFileId = $res['file_id']; |
|
|
|
if ($temFile) { |
|
|
|
$res = self::saveNewFile($temFile, $ownId, $ownType); |
|
|
|
if ($key == 0) { |
|
|
|
$firstFileId = $res['file_id']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|