作者 lyh

gx

@@ -60,7 +60,6 @@ class ProcessRecordsLogic extends BaseLogic @@ -60,7 +60,6 @@ class ProcessRecordsLogic extends BaseLogic
60 if($info){ 60 if($info){
61 $this->model = $info; 61 $this->model = $info;
62 } 62 }
63 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);  
64 $this->model->project_id = $param['project_id']; 63 $this->model->project_id = $param['project_id'];
65 $this->model->record = $param['record']; 64 $this->model->record = $param['record'];
66 $this->model->remark = $param['remark']; 65 $this->model->remark = $param['remark'];
@@ -12,6 +12,7 @@ class ProcessRecords extends Base @@ -12,6 +12,7 @@ class ProcessRecords extends Base
12 protected $table = 'gl_project_process_records'; 12 protected $table = 'gl_project_process_records';
13 13
14 public function setRecordAttribute($value){ 14 public function setRecordAttribute($value){
  15 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
15 foreach ($value as &$v){ 16 foreach ($value as &$v){
16 foreach ($v['image'] as $kImage => $vImage){ 17 foreach ($v['image'] as $kImage => $vImage){
17 $v['image'][$kImage] = basename($vImage); 18 $v['image'][$kImage] = basename($vImage);
@@ -20,6 +21,7 @@ class ProcessRecords extends Base @@ -20,6 +21,7 @@ class ProcessRecords extends Base
20 $v['file'][$kFile] = basename($vFile); 21 $v['file'][$kFile] = basename($vFile);
21 } 22 }
22 } 23 }
  24 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($value, true) . PHP_EOL, FILE_APPEND);
23 $this->attributes['record'] = Arr::a2s($value); 25 $this->attributes['record'] = Arr::a2s($value);
24 } 26 }
25 27