|
...
|
...
|
@@ -39,7 +39,7 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在或已被删除');
|
|
|
|
}
|
|
|
|
$info['image'] = getImageUrl($info['image']);
|
|
|
|
$info['image'] = getImageUrl($info['image'],$this->user['project_location'],$this->user['storage_type']);
|
|
|
|
$info['extend'] = $this->getExtendInfo($info['module_id'],$info['id']);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
...
|
...
|
@@ -86,14 +86,14 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
$arr = json_decode($info['values']);
|
|
|
|
foreach ($arr as $k1=>$v1){
|
|
|
|
$v1 = (array)$v1;
|
|
|
|
$v1['url'] = getImageUrl($v1['url']);
|
|
|
|
$v1['url'] = getImageUrl($v1['url'],$this->user['project_location'],$this->user['storage_type']);
|
|
|
|
$arr[$k1] = $v1;
|
|
|
|
}
|
|
|
|
$v['values'] = $arr;
|
|
|
|
}elseif($v['type'] == 4){
|
|
|
|
$arr1 = json_decode($info['values']);
|
|
|
|
foreach ($arr1 as $k1=>$v1){
|
|
|
|
$v1 = getFileUrl($v1);
|
|
|
|
$v1 = getFileUrl($v1,$this->user['project_location'],$this->user['storage_type']);
|
|
|
|
$arr1[$k1] = $v1;
|
|
|
|
}
|
|
|
|
$v['values'] = $arr1;
|
...
|
...
|
|