作者 lyh

gx

@@ -40,6 +40,7 @@ class CustomModuleContentController extends BaseController @@ -40,6 +40,7 @@ class CustomModuleContentController extends BaseController
40 $v['url'] = $this->getUrl($v); 40 $v['url'] = $this->getUrl($v);
41 $v['category_name'] = $this->categoryName($v['category_id'],$data); 41 $v['category_name'] = $this->categoryName($v['category_id'],$data);
42 $v['image_link'] = getImageUrl($v['image'],$this->user['storage_type'],$this->user['project_location']); 42 $v['image_link'] = getImageUrl($v['image'],$this->user['storage_type'],$this->user['project_location']);
  43 + $v['video_link'] = getFileUrl($v['video'],$this->user['storage_type'],$this->user['project_location']);
43 $v['operator_name'] = (new User())->getName($v['operator_id']); 44 $v['operator_name'] = (new User())->getName($v['operator_id']);
44 $lists['list'][$k] = $v; 45 $lists['list'][$k] = $v;
45 } 46 }
@@ -40,6 +40,7 @@ class CustomModuleContentLogic extends BaseLogic @@ -40,6 +40,7 @@ class CustomModuleContentLogic extends BaseLogic
40 $this->fail('当前数据不存在或已被删除'); 40 $this->fail('当前数据不存在或已被删除');
41 } 41 }
42 $info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']); 42 $info['image'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
  43 + $info['video'] = getFileUrl($info['video'],$this->user['storage_type'],$this->user['project_location']);
43 $info['extend'] = $this->getExtendInfo($info['module_id'],$info['id']); 44 $info['extend'] = $this->getExtendInfo($info['module_id'],$info['id']);
44 return $this->success($info); 45 return $this->success($info);
45 } 46 }
@@ -217,6 +218,9 @@ class CustomModuleContentLogic extends BaseLogic @@ -217,6 +218,9 @@ class CustomModuleContentLogic extends BaseLogic
217 if(isset($param['image']) && !empty($param['image'])){ 218 if(isset($param['image']) && !empty($param['image'])){
218 $param['image'] = str_replace_url($param['image']); 219 $param['image'] = str_replace_url($param['image']);
219 } 220 }
  221 + if(isset($param['video']) && !empty($param['video'])){
  222 + $param['video'] = str_replace_url($param['video']);
  223 + }
220 return $this->success($param); 224 return $this->success($param);
221 } 225 }
222 226