正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -373,7 +373,8 @@ class ImageController extends Controller | @@ -373,7 +373,8 @@ 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 | - $arr[1] = urlSafeBase64Encode($arr[1]); | 376 | + $domain = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 |
| 377 | + $arr[1] = urlSafeBase64Encode($domain.$arr[1]); | ||
| 377 | } | 378 | } |
| 378 | $image_data[$k] = $v; | 379 | $image_data[$k] = $v; |
| 379 | } | 380 | } |
| @@ -754,6 +755,7 @@ class ImageController extends Controller | @@ -754,6 +755,7 @@ class ImageController extends Controller | ||
| 754 | $info['str_data'] = json_decode($info['str_data'],true); | 755 | $info['str_data'] = json_decode($info['str_data'],true); |
| 755 | } | 756 | } |
| 756 | } | 757 | } |
| 758 | + $info['domain'] = 'http://globalso-v6-1309677403.cos.ap-hongkong.myqcloud.com';//cos域名 | ||
| 757 | $this->response('success',Code::SUCCESS,$info); | 759 | $this->response('success',Code::SUCCESS,$info); |
| 758 | } | 760 | } |
| 759 | } | 761 | } |
-
请 注册 或 登录 后发表评论