作者 lyh

gx

... ... @@ -214,7 +214,7 @@ DSE1504F,Super fast Recovery Rectifier,ITO-220AC,400,15,Single Positive,150,1.4,
'key'=>'pd_extended_field_12',
'type'=>4,
'project_id'=>2837,
'values'=>json_encode([$array1[13]]),
'values'=>json_encode(['url'=>$array1[13]]),
'module_id'=>2,
'content_id'=>$contentId,
'created_at'=>date('Y-m-d H:i:s'),
... ...
... ... @@ -91,11 +91,7 @@ class CustomModuleContentLogic extends BaseLogic
}
$v['values'] = $arr;
}elseif($v['type'] == 4){
if(is_array($info['values'])){
$arr1 = json_decode($info['values']);
}else{
$arr1 = [$info['values']];
}
$arr1 = json_decode($info['values']);
foreach ($arr1 as $k1=>$v1){
$v1 = (array)$v1;
$v1['url'] = getFileUrl($v1['url'] ?? $v1,$this->user['storage_type'],$this->user['project_location'],$this->user['file_cdn'] ?? 0);
... ...