正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -51,10 +51,12 @@ class CosService | @@ -51,10 +51,12 @@ class CosService | ||
| 51 | 'rule' => 'watermark/2/text/dGVzdA/gravity/center' | 51 | 'rule' => 'watermark/2/text/dGVzdA/gravity/center' |
| 52 | ] | 52 | ] |
| 53 | ] | 53 | ] |
| 54 | - ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); | 54 | + ], true); |
| 55 | } | 55 | } |
| 56 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($options, true) . PHP_EOL, FILE_APPEND); | ||
| 56 | // 上传文件 | 57 | // 上传文件 |
| 57 | $res = $cosClient->putObject($options); | 58 | $res = $cosClient->putObject($options); |
| 59 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND); | ||
| 58 | return $key; | 60 | return $key; |
| 59 | } | 61 | } |
| 60 | 62 |
-
请 注册 或 登录 后发表评论