|
@@ -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
|
|