作者 lyh

gx

... ... @@ -48,13 +48,12 @@ class CosService
[
'fileid' => $key, // 使用相同的文件名保存
// 'rule' => 'watermark/1/'.implode('/',$watermarkOptions),
'rule' => 'watermark/2/text/dGVzdA'
'rule' => 'watermark/2/text/dGVzdA/gravity/center'
]
]
],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;
... ...