|
...
|
...
|
@@ -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);
|
...
|
...
|
|