正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -369,10 +369,10 @@ class ImageController extends Controller | @@ -369,10 +369,10 @@ class ImageController extends Controller | ||
| 369 | $settingInfo = $imageSettingModel->read(['project_id'=>$project_id]); | 369 | $settingInfo = $imageSettingModel->read(['project_id'=>$project_id]); |
| 370 | if($settingInfo !== false){ | 370 | if($settingInfo !== false){ |
| 371 | if($settingInfo['status'] == 1 && !empty($settingInfo['image_data'])){ | 371 | if($settingInfo['status'] == 1 && !empty($settingInfo['image_data'])){ |
| 372 | - return json_decode($settingInfo['image_data'],true); | 372 | + $settingInfo['image_data'] = json_decode($settingInfo['image_data'],true); |
| 373 | } | 373 | } |
| 374 | if($settingInfo['status'] == 2 && !empty($settingInfo['str_data'])){ | 374 | if($settingInfo['status'] == 2 && !empty($settingInfo['str_data'])){ |
| 375 | - return json_decode($settingInfo['str_data'],true); | 375 | + $settingInfo['str_data'] = json_decode($settingInfo['str_data'],true); |
| 376 | } | 376 | } |
| 377 | } | 377 | } |
| 378 | return null; | 378 | return null; |
| @@ -652,7 +652,7 @@ class ImageController extends Controller | @@ -652,7 +652,7 @@ class ImageController extends Controller | ||
| 652 | $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 | 652 | $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 |
| 653 | if($is_image){ | 653 | if($is_image){ |
| 654 | $param = [ | 654 | $param = [ |
| 655 | - 'image/'.urlSafeBase64Encode($domain.$data['image'] ?? ''),//图片 | 655 | + 'image/'.$domain.($data['image'] ?? ''),//图片 |
| 656 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), | 656 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), |
| 657 | 'dx/'.($data['dx'] ?? 0), | 657 | 'dx/'.($data['dx'] ?? 0), |
| 658 | 'dy/'. ($data['dy'] ?? 0), | 658 | 'dy/'. ($data['dy'] ?? 0), |
| @@ -667,13 +667,13 @@ class ImageController extends Controller | @@ -667,13 +667,13 @@ class ImageController extends Controller | ||
| 667 | } | 667 | } |
| 668 | }else{ | 668 | }else{ |
| 669 | $param = [ | 669 | $param = [ |
| 670 | - 'text/'.urlSafeBase64Encode($data['text'] ?? ''),//文字水印名称 | 670 | + 'text/'.($data['text'] ?? ''),//文字水印名称 |
| 671 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), | 671 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), |
| 672 | 'dx/'.($data['dx'] ?? 10), | 672 | 'dx/'.($data['dx'] ?? 10), |
| 673 | 'dy/'. ($data['dy'] ?? 10), | 673 | 'dy/'. ($data['dy'] ?? 10), |
| 674 | - 'font/'.urlSafeBase64Encode($data['font'] ?? 'tahoma.ttf'),//默认宋体 | 674 | + 'font/'.($data['font'] ?? 'tahoma.ttf'),//默认宋体 |
| 675 | 'fontsize/'.($data['fontsize'] ?? 24),//水印文字字体大小,单位为磅,缺省值13 | 675 | 'fontsize/'.($data['fontsize'] ?? 24),//水印文字字体大小,单位为磅,缺省值13 |
| 676 | - 'fill/'.urlSafeBase64Encode($data['fill'] ?? '#3D3D3D'),//颜色 | 676 | + 'fill/'.($data['fill'] ?? '#3D3D3D'),//颜色 |
| 677 | 'dissolve/'.($data['dissolve'] ?? 50),//透明度 | 677 | 'dissolve/'.($data['dissolve'] ?? 50),//透明度 |
| 678 | 'degree/'.($data['degree'] ?? 0),//文字水印的旋转角度设置,取值范围为0 - 360,默认0 | 678 | 'degree/'.($data['degree'] ?? 0),//文字水印的旋转角度设置,取值范围为0 - 360,默认0 |
| 679 | 'batch/'.($data['batch'] ?? 0),//平铺水印功能 | 679 | 'batch/'.($data['batch'] ?? 0),//平铺水印功能 |
-
请 注册 或 登录 后发表评论