|
...
|
...
|
@@ -106,15 +106,13 @@ class UpdateBuildConfiguration extends Command |
|
|
|
'product_id'=>$v['id'],
|
|
|
|
'column_id'=>1,
|
|
|
|
'text_type'=>1,
|
|
|
|
'title'=>'',
|
|
|
|
'title'=>$v['describe'][0]['title'] ?? '',
|
|
|
|
'sort'=>1,
|
|
|
|
'content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? '','title'=>$v['describe'][0]['title'] ?? ''],true),
|
|
|
|
'content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? ''],true),
|
|
|
|
'created_at'=>date('Y-m-d H:i:s'),
|
|
|
|
'updated_at'=>date('Y-m-d H:i:s')
|
|
|
|
];
|
|
|
|
$detailModel->insert($data);
|
|
|
|
}else{
|
|
|
|
$detailModel->edit(['content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? '','title'=>$v['describe'][0]['title'] ?? ''],true)],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
...
|
...
|
|