Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -478,7 +478,7 @@ class ProjectUpdate extends Command | @@ -478,7 +478,7 @@ class ProjectUpdate extends Command | ||
| 478 | return $task_id; | 478 | return $task_id; |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | - $task_list = UpdateLog::where('project_id', 528)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get(); | 481 | + $task_list = UpdateLog::where('project_id', 543)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get(); |
| 482 | if ($task_list->count() == 0) { | 482 | if ($task_list->count() == 0) { |
| 483 | return false; | 483 | return false; |
| 484 | } | 484 | } |
| @@ -506,7 +506,7 @@ class ProjectUpdate extends Command | @@ -506,7 +506,7 @@ class ProjectUpdate extends Command | ||
| 506 | 506 | ||
| 507 | $path_arr = explode('/', $path); | 507 | $path_arr = explode('/', $path); |
| 508 | 508 | ||
| 509 | - return end($path_arr) ? generateRoute(end($path_arr)) : generateRoute($path_arr[count($path_arr) - 2]); | 509 | + return end($path_arr) ? end($path_arr) : $path_arr[count($path_arr) - 2]; |
| 510 | } | 510 | } |
| 511 | 511 | ||
| 512 | //产品多级分类入库 | 512 | //产品多级分类入库 |
| @@ -151,7 +151,7 @@ class NavLogic extends BaseLogic | @@ -151,7 +151,7 @@ class NavLogic extends BaseLogic | ||
| 151 | if($pid){ | 151 | if($pid){ |
| 152 | $p_cate = $category->where('id', $pid)->select($fields)->first(); | 152 | $p_cate = $category->where('id', $pid)->select($fields)->first(); |
| 153 | if($p_cate){ | 153 | if($p_cate){ |
| 154 | - $nav_pid = $this->model->where('import_id', $nav['id'])->where('url', $p_cate['alias'])->value('id'); | 154 | + $nav_pid = $this->model->where('import_id', $nav['id'])->where('url', $p_cate['alias'])->value('id') ?: $nav_pid; |
| 155 | } | 155 | } |
| 156 | } | 156 | } |
| 157 | $list = $category->list(['pid' => $pid], 'id', $fields, 'asc'); | 157 | $list = $category->list(['pid' => $pid], 'id', $fields, 'asc'); |
| @@ -166,7 +166,7 @@ class NavLogic extends BaseLogic | @@ -166,7 +166,7 @@ class NavLogic extends BaseLogic | ||
| 166 | continue; | 166 | continue; |
| 167 | } | 167 | } |
| 168 | $data[] = [ | 168 | $data[] = [ |
| 169 | - 'pid' => $nav_pid ?: 0, | 169 | + 'pid' => $nav_pid, |
| 170 | 'name' => $item['name'], | 170 | 'name' => $item['name'], |
| 171 | 'url' => $item['alias'], | 171 | 'url' => $item['alias'], |
| 172 | 'project_id' => $this->project['id'], | 172 | 'project_id' => $this->project['id'], |
-
请 注册 或 登录 后发表评论