正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -373,10 +373,9 @@ class ImageController extends Controller | @@ -373,10 +373,9 @@ class ImageController extends Controller | ||
| 373 | foreach ($image_data as $k => $v){ | 373 | foreach ($image_data as $k => $v){ |
| 374 | $arr = implode('/',$v); | 374 | $arr = implode('/',$v); |
| 375 | if ($arr[0] == 'image') { | 375 | if ($arr[0] == 'image') { |
| 376 | - $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 | ||
| 377 | - $arr[1] = urlSafeBase64Encode($domain.$arr[1]); | 376 | + $arr[1] = urlSafeBase64Encode($arr[1]); |
| 378 | } | 377 | } |
| 379 | - $image_data[$k] = $v; | 378 | + $image_data[$k] = $arr; |
| 380 | } | 379 | } |
| 381 | } | 380 | } |
| 382 | if($settingInfo['status'] == 2 && !empty($settingInfo['str_data'])){ | 381 | if($settingInfo['status'] == 2 && !empty($settingInfo['str_data'])){ |
| @@ -673,7 +672,7 @@ class ImageController extends Controller | @@ -673,7 +672,7 @@ class ImageController extends Controller | ||
| 673 | $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 | 672 | $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 |
| 674 | if($is_image){ | 673 | if($is_image){ |
| 675 | $param = [ | 674 | $param = [ |
| 676 | - 'image/'.($data['image'] ?? ''),//图片 | 675 | + 'image/'.$domain.($data['image'] ?? ''),//图片 |
| 677 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), | 676 | 'gravity/'.($data['gravity'] ?? 'SouthEast'), |
| 678 | 'dx/'.($data['dx'] ?? 0), | 677 | 'dx/'.($data['dx'] ?? 0), |
| 679 | 'dy/'. ($data['dy'] ?? 0), | 678 | 'dy/'. ($data['dy'] ?? 0), |
| @@ -754,8 +753,9 @@ class ImageController extends Controller | @@ -754,8 +753,9 @@ class ImageController extends Controller | ||
| 754 | if(!empty($info['str_data'])){ | 753 | if(!empty($info['str_data'])){ |
| 755 | $info['str_data'] = json_decode($info['str_data'],true); | 754 | $info['str_data'] = json_decode($info['str_data'],true); |
| 756 | } | 755 | } |
| 756 | + $info['domain'] = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com'; | ||
| 757 | } | 757 | } |
| 758 | - $info['domain'] = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 | 758 | + |
| 759 | $this->response('success',Code::SUCCESS,$info); | 759 | $this->response('success',Code::SUCCESS,$info); |
| 760 | } | 760 | } |
| 761 | } | 761 | } |
-
请 注册 或 登录 后发表评论