|
...
|
...
|
@@ -46,7 +46,7 @@ class CosService |
|
|
|
'is_pic_info' => 1,
|
|
|
|
'rules' => [
|
|
|
|
[
|
|
|
|
'fileid' => $key, // 使用相同的文件名保存
|
|
|
|
'fileid' => urlSafeBase64Encode($key), // 使用相同的文件名保存
|
|
|
|
// 'rule' => 'watermark/1/'.implode('/',$watermarkOptions),
|
|
|
|
'rule' => 'watermark/2/text/dGVzdA/gravity/center'
|
|
|
|
]
|
|
...
|
...
|
@@ -55,7 +55,6 @@ class CosService |
|
|
|
}
|
|
|
|
// 上传文件
|
|
|
|
$res = $cosClient->putObject($options);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return $key;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|