合并分支 'akun' 到 'master'
Akun 查看合并请求 !613
正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
| @@ -649,6 +649,14 @@ class ProjectUpdate extends Command | @@ -649,6 +649,14 @@ class ProjectUpdate extends Command | ||
| 649 | $new_img = $this->source_download($image, $project_id, $domain_arr['host'], $web_url_domain, $home_url); | 649 | $new_img = $this->source_download($image, $project_id, $domain_arr['host'], $web_url_domain, $home_url); |
| 650 | //名称去掉特殊符号 | 650 | //名称去掉特殊符号 |
| 651 | $item['title'] = $this->special2str($item['title'] ?? ''); | 651 | $item['title'] = $this->special2str($item['title'] ?? ''); |
| 652 | + //排序 | ||
| 653 | + $sort = 0; | ||
| 654 | + if(isset($item['listorder'])){ | ||
| 655 | + $sort = $item['listorder']; | ||
| 656 | + } | ||
| 657 | + if(isset($item['sort'])){ | ||
| 658 | + $sort = $item['sort']; | ||
| 659 | + } | ||
| 652 | 660 | ||
| 653 | try { | 661 | try { |
| 654 | $custom_content = $model->read(['route' => $route], ['id','six_read']); | 662 | $custom_content = $model->read(['route' => $route], ['id','six_read']); |
| @@ -659,7 +667,7 @@ class ProjectUpdate extends Command | @@ -659,7 +667,7 @@ class ProjectUpdate extends Command | ||
| 659 | 'module_id' => $custom_info['id'], | 667 | 'module_id' => $custom_info['id'], |
| 660 | 'category_id' => $category_id, | 668 | 'category_id' => $category_id, |
| 661 | 'content' => $item['content'] ?? '', | 669 | 'content' => $item['content'] ?? '', |
| 662 | - 'sort' => $item['sort'] ?? 0, | 670 | + 'sort' => $sort, |
| 663 | 'image' => $new_img, | 671 | 'image' => $new_img, |
| 664 | 'created_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | 672 | 'created_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), |
| 665 | 'updated_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), | 673 | 'updated_at' => $item['post_time'] ?? date('Y-m-d H:i:s'), |
-
请 注册 或 登录 后发表评论