|
...
|
...
|
@@ -171,7 +171,7 @@ class CosService |
|
|
|
public function addFieldImage($cdnUrl = '',$data = [],$is_image = false){
|
|
|
|
if($is_image){
|
|
|
|
$param = [
|
|
|
|
'image/'.urlSafeBase64Encode($data['image']),//文字水印名称
|
|
|
|
'image/'.$this->urlSafeBase64Encode($data['image']),//文字水印名称
|
|
|
|
$data['position'] ?? 'gravity/SouthEast',
|
|
|
|
$data['dx'] ?? 'dx/10/dy/10',
|
|
|
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|
|
...
|
...
|
@@ -181,7 +181,7 @@ class CosService |
|
|
|
$cdnUrl = $cdnUrl.'?imageMogr2/watermark/1/'.implode('/',$param);
|
|
|
|
}else{
|
|
|
|
$param = [
|
|
|
|
'text/'.urlSafeBase64Encode($data['characters']),//文字水印名称
|
|
|
|
'text/'.$this->urlSafeBase64Encode($data['characters']),//文字水印名称
|
|
|
|
$data['position'] ?? 'gravity/SouthEast',
|
|
|
|
$data['dx'] ?? 'dx/10/dy/10',
|
|
|
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|
...
|
...
|
|