作者 lyh

gx

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