正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -263,7 +263,7 @@ class ProjectUpdate extends Command | @@ -263,7 +263,7 @@ class ProjectUpdate extends Command | ||
| 263 | $type_arr[] = 2; | 263 | $type_arr[] = 2; |
| 264 | } elseif ($cate['parent'] == 0 && $cate['name'] == 'Hot Products') { | 264 | } elseif ($cate['parent'] == 0 && $cate['name'] == 'Hot Products') { |
| 265 | $type_arr[] = 3; | 265 | $type_arr[] = 3; |
| 266 | - }else{ | 266 | + } else { |
| 267 | $new_category[] = $cate; | 267 | $new_category[] = $cate; |
| 268 | } | 268 | } |
| 269 | } | 269 | } |
| @@ -509,6 +509,7 @@ class ProjectUpdate extends Command | @@ -509,6 +509,7 @@ class ProjectUpdate extends Command | ||
| 509 | 'pid' => $pid, | 509 | 'pid' => $pid, |
| 510 | 'keywords' => $item['keywords'] ?? '', | 510 | 'keywords' => $item['keywords'] ?? '', |
| 511 | 'describe' => $item['description'] ?? '', | 511 | 'describe' => $item['description'] ?? '', |
| 512 | + 'original_id' => $item['id'], | ||
| 512 | 'route' => $route | 513 | 'route' => $route |
| 513 | ]); | 514 | ]); |
| 514 | $this->set_map($route, RouteMap::SOURCE_PRODUCT_CATE, $parent_id, $project_id); | 515 | $this->set_map($route, RouteMap::SOURCE_PRODUCT_CATE, $parent_id, $project_id); |
| @@ -518,8 +519,6 @@ class ProjectUpdate extends Command | @@ -518,8 +519,6 @@ class ProjectUpdate extends Command | ||
| 518 | } | 519 | } |
| 519 | } else { | 520 | } else { |
| 520 | $parent_id = $parent['id']; | 521 | $parent_id = $parent['id']; |
| 521 | - | ||
| 522 | - $model->edit(['original_id'=>$item['id']],['id'=>$parent_id]); | ||
| 523 | } | 522 | } |
| 524 | 523 | ||
| 525 | if (!empty($item['children'])) { | 524 | if (!empty($item['children'])) { |
-
请 注册 或 登录 后发表评论