合并分支 'akun' 到 'master'
Akun 查看合并请求 !1116
正在显示
1 个修改的文件
包含
24 行增加
和
19 行删除
| @@ -367,16 +367,16 @@ class ProjectUpdate extends Command | @@ -367,16 +367,16 @@ class ProjectUpdate extends Command | ||
| 367 | 'six_read' => 1, | 367 | 'six_read' => 1, |
| 368 | 'route' => $route | 368 | 'route' => $route |
| 369 | ]); | 369 | ]); |
| 370 | - if(!empty($content)){ | 370 | + if (!empty($content)) { |
| 371 | $data_s = [ | 371 | $data_s = [ |
| 372 | - 'product_id'=>$id, | ||
| 373 | - 'column_id'=>1, | ||
| 374 | - 'text_type'=>1, | ||
| 375 | - 'title'=>'product detail', | ||
| 376 | - 'sort'=>1, | ||
| 377 | - 'content'=>json_encode(['content'=>$content ?? ''],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), | ||
| 378 | - 'created_at'=>date('Y-m-d H:i:s'), | ||
| 379 | - 'updated_at'=>date('Y-m-d H:i:s') | 372 | + 'product_id' => $id, |
| 373 | + 'column_id' => 1, | ||
| 374 | + 'text_type' => 1, | ||
| 375 | + 'title' => 'product detail', | ||
| 376 | + 'sort' => 1, | ||
| 377 | + 'content' => json_encode(['content' => $content ?? ''], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), | ||
| 378 | + 'created_at' => date('Y-m-d H:i:s'), | ||
| 379 | + 'updated_at' => date('Y-m-d H:i:s') | ||
| 380 | ]; | 380 | ]; |
| 381 | $detailModel = new Detail(); | 381 | $detailModel = new Detail(); |
| 382 | $detailModel->insert($data_s); | 382 | $detailModel->insert($data_s); |
| @@ -407,18 +407,18 @@ class ProjectUpdate extends Command | @@ -407,18 +407,18 @@ class ProjectUpdate extends Command | ||
| 407 | 'sort' => $item['sort'] ?? 0, | 407 | 'sort' => $item['sort'] ?? 0, |
| 408 | 'files' => $files, | 408 | 'files' => $files, |
| 409 | ], ['id' => $id]); | 409 | ], ['id' => $id]); |
| 410 | - if(!empty($content)){ | 410 | + if (!empty($content)) { |
| 411 | $detailModel = new Detail(); | 411 | $detailModel = new Detail(); |
| 412 | - $detailModel->del(['product_id'=>$id,'column_id'=>1]); | 412 | + $detailModel->del(['product_id' => $id, 'column_id' => 1]); |
| 413 | $data_s = [ | 413 | $data_s = [ |
| 414 | - 'product_id'=>$id, | ||
| 415 | - 'column_id'=>1, | ||
| 416 | - 'text_type'=>1, | ||
| 417 | - 'title'=>'product detail', | ||
| 418 | - 'sort'=>1, | ||
| 419 | - 'content'=>json_encode(['content'=>$content ?? ''],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), | ||
| 420 | - 'created_at'=>date('Y-m-d H:i:s'), | ||
| 421 | - 'updated_at'=>date('Y-m-d H:i:s') | 414 | + 'product_id' => $id, |
| 415 | + 'column_id' => 1, | ||
| 416 | + 'text_type' => 1, | ||
| 417 | + 'title' => 'product detail', | ||
| 418 | + 'sort' => 1, | ||
| 419 | + 'content' => json_encode(['content' => $content ?? ''], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), | ||
| 420 | + 'created_at' => date('Y-m-d H:i:s'), | ||
| 421 | + 'updated_at' => date('Y-m-d H:i:s') | ||
| 422 | ]; | 422 | ]; |
| 423 | $detailModel->insert($data_s); | 423 | $detailModel->insert($data_s); |
| 424 | } | 424 | } |
| @@ -710,6 +710,11 @@ class ProjectUpdate extends Command | @@ -710,6 +710,11 @@ class ProjectUpdate extends Command | ||
| 710 | if ($item['category'] ?? []) { | 710 | if ($item['category'] ?? []) { |
| 711 | $category_arr = $category_model->list(['original_id' => ['in', array_column($item['category'], 'id')]]); | 711 | $category_arr = $category_model->list(['original_id' => ['in', array_column($item['category'], 'id')]]); |
| 712 | $category_id = implode(',', array_column($category_arr, 'id')); | 712 | $category_id = implode(',', array_column($category_arr, 'id')); |
| 713 | + | ||
| 714 | + //2293项目特殊处理 | ||
| 715 | + if ($project_id == 2293) { | ||
| 716 | + $category_id = $category_id . ',3'; | ||
| 717 | + } | ||
| 713 | } else { | 718 | } else { |
| 714 | $category_custom = $category_model->read(['route' => $custom_info['route']], 'id'); | 719 | $category_custom = $category_model->read(['route' => $custom_info['route']], 'id'); |
| 715 | if ($category_custom) { | 720 | if ($category_custom) { |
-
请 注册 或 登录 后发表评论