正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -171,7 +171,7 @@ class CosService | @@ -171,7 +171,7 @@ class CosService | ||
| 171 | public function addFieldImage($cdnUrl = '',$data = [],$is_image = false){ | 171 | public function addFieldImage($cdnUrl = '',$data = [],$is_image = false){ |
| 172 | if($is_image){ | 172 | if($is_image){ |
| 173 | $param = [ | 173 | $param = [ |
| 174 | - 'image/'.urlSafeBase64Encode($data['image']),//文字水印名称 | 174 | + 'image/'.$this->urlSafeBase64Encode($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 | - 'text/'.urlSafeBase64Encode($data['characters']),//文字水印名称 | 184 | + 'text/'.$this->urlSafeBase64Encode($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',//默认宋体 |
-
请 注册 或 登录 后发表评论