正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -198,15 +198,15 @@ class CosService | @@ -198,15 +198,15 @@ class CosService | ||
| 198 | ]; | 198 | ]; |
| 199 | $url = $url.'?watermark/1/'.implode('/',$param); | 199 | $url = $url.'?watermark/1/'.implode('/',$param); |
| 200 | }else{ | 200 | }else{ |
| 201 | - $data['dx'] = $data['dx'] ?? 10; | ||
| 202 | - return $data; | 201 | +// $data['dx'] = $data['dx'] ?? 10; |
| 202 | +// return $data; | ||
| 203 | $param = [ | 203 | $param = [ |
| 204 | 'text/'.$this->urlSafeBase64Encode($data['text'] ?? ''),//文字水印名称 | 204 | 'text/'.$this->urlSafeBase64Encode($data['text'] ?? ''),//文字水印名称 |
| 205 | 'gravity/'.$this->urlSafeBase64Encode($data['gravity'] ?? 'SouthEast'), | 205 | 'gravity/'.$this->urlSafeBase64Encode($data['gravity'] ?? 'SouthEast'), |
| 206 | 'dx/'.$data['dx'] ?? 10, | 206 | 'dx/'.$data['dx'] ?? 10, |
| 207 | 'dy/'. $data['dy'] ?? 10, | 207 | 'dy/'. $data['dy'] ?? 10, |
| 208 | 'font/'.$this->urlSafeBase64Encode($data['font'] ?? 'tahoma.ttf'),//默认宋体 | 208 | 'font/'.$this->urlSafeBase64Encode($data['font'] ?? 'tahoma.ttf'),//默认宋体 |
| 209 | - $data['fontsize'] ?? 'fontsize/24',//水印文字字体大小,单位为磅,缺省值13 | 209 | + 'fontsize/'.$data['fontsize'] ?? 24,//水印文字字体大小,单位为磅,缺省值13 |
| 210 | 'fill/'.$this->urlSafeBase64Encode($data['fill'] ?? '#3D3D3D'),//颜色 | 210 | 'fill/'.$this->urlSafeBase64Encode($data['fill'] ?? '#3D3D3D'),//颜色 |
| 211 | 'dissolve/'.$data['dissolve'] ?? 50,//透明度 | 211 | 'dissolve/'.$data['dissolve'] ?? 50,//透明度 |
| 212 | 'degree/'.$data['degree'] ?? 0,//文字水印的旋转角度设置,取值范围为0 - 360,默认0 | 212 | 'degree/'.$data['degree'] ?? 0,//文字水印的旋转角度设置,取值范围为0 - 360,默认0 |
-
请 注册 或 登录 后发表评论