作者 lyh

gx脚本demo

@@ -183,10 +183,10 @@ class CosService @@ -183,10 +183,10 @@ class CosService
183 $param = [ 183 $param = [
184 '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',  
187 - $data['font'] ?? 'font/5bCP6aOe',//默认宋体  
188 - $data['fontsize'] ?? 'fontsize/24',//大小  
189 - $data['fill'] ?? 'fill/I0ZGRkZGRg==',//颜色 186 +// $data['dx'] ?? 'dx/10/dy/10',
  187 +// $data['font'] ?? 'font/5bCP6aOe',//默认宋体
  188 +// $data['fontsize'] ?? 'fontsize/24',//大小
  189 +// $data['fill'] ?? 'fill/I0ZGRkZGRg==',//颜色
190 ]; 190 ];
191 $cdnUrl = $cdnUrl.'?imageMogr2/watermark/3/'.implode('/',$param); 191 $cdnUrl = $cdnUrl.'?imageMogr2/watermark/3/'.implode('/',$param);
192 } 192 }