作者 lyh

gx

@@ -52,8 +52,11 @@ class CosService @@ -52,8 +52,11 @@ class CosService
52 ] 52 ]
53 ]); 53 ]);
54 } 54 }
  55 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($options, true) . PHP_EOL, FILE_APPEND);
55 // 上传文件 56 // 上传文件
56 - $cosClient->putObject($options); 57 + $res = $cosClient->putObject($options);
  58 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
  59 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($key, true) . PHP_EOL, FILE_APPEND);
57 return $key; 60 return $key;
58 } 61 }
59 62