正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -95,11 +95,11 @@ class CosService | @@ -95,11 +95,11 @@ class CosService | ||
| 95 | 'Key' => $key, | 95 | 'Key' => $key, |
| 96 | 'Body' => fopen($file_url, 'r'), | 96 | 'Body' => fopen($file_url, 'r'), |
| 97 | ]); | 97 | ]); |
| 98 | + return $key; | ||
| 98 | }catch (\Exception $e){ | 99 | }catch (\Exception $e){ |
| 99 | LogUtils::error('uploadRemote error', $e->getMessage()); | 100 | LogUtils::error('uploadRemote error', $e->getMessage()); |
| 101 | + return ''; | ||
| 100 | } | 102 | } |
| 101 | - | ||
| 102 | - return $key; | ||
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | } | 105 | } |
-
请 注册 或 登录 后发表评论