作者 lyh

gx

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