正在显示
1 个修改的文件
包含
2 行增加
和
4 行删除
| @@ -106,15 +106,13 @@ class UpdateBuildConfiguration extends Command | @@ -106,15 +106,13 @@ class UpdateBuildConfiguration extends Command | ||
| 106 | 'product_id'=>$v['id'], | 106 | 'product_id'=>$v['id'], |
| 107 | 'column_id'=>1, | 107 | 'column_id'=>1, |
| 108 | 'text_type'=>1, | 108 | 'text_type'=>1, |
| 109 | - 'title'=>'', | 109 | + 'title'=>$v['describe'][0]['title'] ?? '', |
| 110 | 'sort'=>1, | 110 | 'sort'=>1, |
| 111 | - 'content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? '','title'=>$v['describe'][0]['title'] ?? ''],true), | 111 | + 'content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? ''],true), |
| 112 | 'created_at'=>date('Y-m-d H:i:s'), | 112 | 'created_at'=>date('Y-m-d H:i:s'), |
| 113 | 'updated_at'=>date('Y-m-d H:i:s') | 113 | 'updated_at'=>date('Y-m-d H:i:s') |
| 114 | ]; | 114 | ]; |
| 115 | $detailModel->insert($data); | 115 | $detailModel->insert($data); |
| 116 | - }else{ | ||
| 117 | - $detailModel->edit(['content'=>json_encode(['content'=>$v['describe'][0]['text'] ?? '','title'=>$v['describe'][0]['title'] ?? ''],true)],['id'=>$v['id']]); | ||
| 118 | } | 116 | } |
| 119 | } | 117 | } |
| 120 | }else{ | 118 | }else{ |
-
请 注册 或 登录 后发表评论