正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -37,7 +37,7 @@ class CustomModuleContentController extends BaseController | @@ -37,7 +37,7 @@ class CustomModuleContentController extends BaseController | ||
| 37 | $data = $this->getAllCategoryName(); | 37 | $data = $this->getAllCategoryName(); |
| 38 | foreach ($lists['list'] as $k=>$v){ | 38 | foreach ($lists['list'] as $k=>$v){ |
| 39 | $v['category_name'] = $this->categoryName($v['category_id'],$data); | 39 | $v['category_name'] = $this->categoryName($v['category_id'],$data); |
| 40 | - $v['image_link'] = getImageUrl($v['image']); | 40 | + $v['image_link'] = getImageUrl($v['image'],$this->user['project_location'],$this->user['storage_type']); |
| 41 | $v['operator_name'] = (new User())->getName($v['operator_id']); | 41 | $v['operator_name'] = (new User())->getName($v['operator_id']); |
| 42 | $lists['list'][$k] = $v; | 42 | $lists['list'][$k] = $v; |
| 43 | } | 43 | } |
| @@ -25,7 +25,7 @@ class WebSettingImageController extends BaseController | @@ -25,7 +25,7 @@ class WebSettingImageController extends BaseController | ||
| 25 | public function lists(WebSettingImage $webSettingImage){ | 25 | public function lists(WebSettingImage $webSettingImage){ |
| 26 | $list = $webSettingImage->list([],'id',['id','image','type']); | 26 | $list = $webSettingImage->list([],'id',['id','image','type']); |
| 27 | foreach ($list as $k=>$v){ | 27 | foreach ($list as $k=>$v){ |
| 28 | - $v['image'] = getImageUrl($v['image']); | 28 | + $v['image'] = getImageUrl($v['image'],$this->user['project_location'],$this->user['storage_type']); |
| 29 | $list[$k] = $v; | 29 | $list[$k] = $v; |
| 30 | } | 30 | } |
| 31 | $this->response('success',Code::SUCCESS,$list); | 31 | $this->response('success',Code::SUCCESS,$list); |
| @@ -39,7 +39,7 @@ class CustomModuleContentLogic extends BaseLogic | @@ -39,7 +39,7 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 39 | if($info === false){ | 39 | if($info === false){ |
| 40 | $this->fail('当前数据不存在或已被删除'); | 40 | $this->fail('当前数据不存在或已被删除'); |
| 41 | } | 41 | } |
| 42 | - $info['image'] = getImageUrl($info['image']); | 42 | + $info['image'] = getImageUrl($info['image'],$this->user['project_location'],$this->user['storage_type']); |
| 43 | $info['extend'] = $this->getExtendInfo($info['module_id'],$info['id']); | 43 | $info['extend'] = $this->getExtendInfo($info['module_id'],$info['id']); |
| 44 | return $this->success($info); | 44 | return $this->success($info); |
| 45 | } | 45 | } |
| @@ -86,14 +86,14 @@ class CustomModuleContentLogic extends BaseLogic | @@ -86,14 +86,14 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 86 | $arr = json_decode($info['values']); | 86 | $arr = json_decode($info['values']); |
| 87 | foreach ($arr as $k1=>$v1){ | 87 | foreach ($arr as $k1=>$v1){ |
| 88 | $v1 = (array)$v1; | 88 | $v1 = (array)$v1; |
| 89 | - $v1['url'] = getImageUrl($v1['url']); | 89 | + $v1['url'] = getImageUrl($v1['url'],$this->user['project_location'],$this->user['storage_type']); |
| 90 | $arr[$k1] = $v1; | 90 | $arr[$k1] = $v1; |
| 91 | } | 91 | } |
| 92 | $v['values'] = $arr; | 92 | $v['values'] = $arr; |
| 93 | }elseif($v['type'] == 4){ | 93 | }elseif($v['type'] == 4){ |
| 94 | $arr1 = json_decode($info['values']); | 94 | $arr1 = json_decode($info['values']); |
| 95 | foreach ($arr1 as $k1=>$v1){ | 95 | foreach ($arr1 as $k1=>$v1){ |
| 96 | - $v1 = getFileUrl($v1); | 96 | + $v1 = getFileUrl($v1,$this->user['project_location'],$this->user['storage_type']); |
| 97 | $arr1[$k1] = $v1; | 97 | $arr1[$k1] = $v1; |
| 98 | } | 98 | } |
| 99 | $v['values'] = $arr1; | 99 | $v['values'] = $arr1; |
| @@ -32,7 +32,7 @@ class CategoryLogic extends BaseLogic | @@ -32,7 +32,7 @@ class CategoryLogic extends BaseLogic | ||
| 32 | foreach ($data as &$v){ | 32 | foreach ($data as &$v){ |
| 33 | $v['url'] = $this->user['domain'] . $v['route'] ; | 33 | $v['url'] = $this->user['domain'] . $v['route'] ; |
| 34 | $v['product_num'] = Category::getProductNum($v['id']); | 34 | $v['product_num'] = Category::getProductNum($v['id']); |
| 35 | - $v['image_link'] = getImageUrl($v['image']); | 35 | + $v['image_link'] = getImageUrl($v['image'],$this->user['project_location'],$this->user['storage_type']); |
| 36 | } | 36 | } |
| 37 | if(!$map){ | 37 | if(!$map){ |
| 38 | $data = Arr::listToTree($data); | 38 | $data = Arr::listToTree($data); |
-
请 注册 或 登录 后发表评论