|
...
|
...
|
@@ -41,7 +41,7 @@ class CosService |
|
|
|
'Body' => $Body,
|
|
|
|
];
|
|
|
|
//水印
|
|
|
|
// if ($watermarkOptions) {
|
|
|
|
if ($watermarkOptions) {
|
|
|
|
$options['Pic-Operations'] = json_encode([
|
|
|
|
'is_pic_info' => 1,
|
|
|
|
'rules' => [
|
|
...
|
...
|
@@ -51,8 +51,8 @@ class CosService |
|
|
|
'rule' => 'watermark/2/text/dGVzdA/gravity/center'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],true);
|
|
|
|
// }
|
|
|
|
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
|
|
|
}
|
|
|
|
// 上传文件
|
|
|
|
$res = $cosClient->putObject($options);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
|
...
|
...
|
|