|
@@ -171,7 +171,7 @@ class CosService |
|
@@ -171,7 +171,7 @@ class CosService |
|
171
|
public function addFieldImage($cdnUrl = '',$data = [],$is_image = true){
|
171
|
public function addFieldImage($cdnUrl = '',$data = [],$is_image = true){
|
|
172
|
if($is_image){
|
172
|
if($is_image){
|
|
173
|
$param = [
|
173
|
$param = [
|
|
174
|
- $data['image'] ?? 'image/'.urlencode(base64_encode("{$data['image']}")),//文字水印名称
|
174
|
+ 'image/'.urlencode(base64_encode("{$data['image']}")),//文字水印名称
|
|
175
|
$data['position'] ?? 'gravity/SouthEast',
|
175
|
$data['position'] ?? 'gravity/SouthEast',
|
|
176
|
$data['dx'] ?? 'dx/10/dy/10',
|
176
|
$data['dx'] ?? 'dx/10/dy/10',
|
|
177
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|
177
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|
|
@@ -181,7 +181,7 @@ class CosService |
|
@@ -181,7 +181,7 @@ class CosService |
|
181
|
$cdnUrl = $cdnUrl.'?imageMogr2/watermark/1/'.implode('/',$param);
|
181
|
$cdnUrl = $cdnUrl.'?imageMogr2/watermark/1/'.implode('/',$param);
|
|
182
|
}else{
|
182
|
}else{
|
|
183
|
$param = [
|
183
|
$param = [
|
|
184
|
- $data['characters'] ?? 'text/'.urlencode(base64_encode("{$data['characters']}")),//文字水印名称
|
184
|
+ 'text/'.urlencode(base64_encode("{$data['characters']}")),//文字水印名称
|
|
185
|
$data['position'] ?? 'gravity/SouthEast',
|
185
|
$data['position'] ?? 'gravity/SouthEast',
|
|
186
|
$data['dx'] ?? 'dx/10/dy/10',
|
186
|
$data['dx'] ?? 'dx/10/dy/10',
|
|
187
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|
187
|
$data['font'] ?? 'font/5bCP6aOe',//默认宋体
|