作者 lyh

gx

... ... @@ -51,10 +51,12 @@ class CosService
'rule' => 'watermark/2/text/dGVzdA/gravity/center'
]
]
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
], true);
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($options, true) . PHP_EOL, FILE_APPEND);
// 上传文件
$res = $cosClient->putObject($options);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
return $key;
}
... ...