作者 lyh

gx

... ... @@ -25,8 +25,6 @@ class ProcessRecordsLogic extends BaseLogic
'record' => [],
'remark' => '',
];
}else{
$data = $data->toArray();
}
$data['project_company'] = $project['company'] ?? '';
$data['project_plan'] = $project['deploy_build']['plan'][0] ?? '';
... ...
... ... @@ -12,7 +12,7 @@ class ProcessRecords extends Base
protected $table = 'gl_project_process_records';
public function setRecordAttribute($value){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
foreach ($value as &$v){
foreach ($v['image'] as $kImage => $vImage){
$v['image'][$kImage] = basename($vImage);
... ... @@ -21,12 +21,12 @@ class ProcessRecords extends Base
$v['file'][$kFile] = basename($vFile);
}
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
$this->attributes['record'] = Arr::a2s($value);
}
public function getRecordAttribute($value){
$value = Arr::s2a($value);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
foreach ($value as &$v){
foreach ($v['image'] as $kImage => $vImage){
$v['image'][$kImage] = getImageUrl($vImage);
... ...