Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
2 个修改的文件
包含
9 行增加
和
3 行删除
| @@ -211,6 +211,9 @@ class OptimizeController extends BaseController | @@ -211,6 +211,9 @@ class OptimizeController extends BaseController | ||
| 211 | if(isset($this->map['title']) && !empty($this->map['title'])){ | 211 | if(isset($this->map['title']) && !empty($this->map['title'])){ |
| 212 | $query = $query->where('gl_project.title','like','%'.$this->map['title'].'%'); | 212 | $query = $query->where('gl_project.title','like','%'.$this->map['title'].'%'); |
| 213 | } | 213 | } |
| 214 | + if(isset($this->map['amp_status'])){ | ||
| 215 | + $query = $query->where('gl_domain_info.amp_status',$this->map['amp_status']); | ||
| 216 | + } | ||
| 214 | if(isset($this->map['level']) && !empty($this->map['level'])){ | 217 | if(isset($this->map['level']) && !empty($this->map['level'])){ |
| 215 | $query = $query->whereRaw("FIND_IN_SET(?, gl_project.level) > 0", [$this->map['level']]); | 218 | $query = $query->whereRaw("FIND_IN_SET(?, gl_project.level) > 0", [$this->map['level']]); |
| 216 | } | 219 | } |
| @@ -98,9 +98,12 @@ class ProjectLogic extends BaseLogic | @@ -98,9 +98,12 @@ class ProjectLogic extends BaseLogic | ||
| 98 | //升级项目采集完成时间 | 98 | //升级项目采集完成时间 |
| 99 | $collect_time = ''; | 99 | $collect_time = ''; |
| 100 | if($info['is_upgrade'] == 1){ | 100 | if($info['is_upgrade'] == 1){ |
| 101 | - $collect_info = UpdateLog::where('project_id',$id)->where('api_type','blog')->first(); | ||
| 102 | - if($collect_info){ | ||
| 103 | - $collect_time = $collect_info->collect_status == 0 ? '采集中' : $collect_info->updated_at->format('Y-m-d H:i:s'); | 101 | + $collect_un_count = UpdateLog::where('project_id',$id)->where('collect_status',0)->count(); |
| 102 | + if($collect_un_count > 0){ | ||
| 103 | + $collect_time = '采集中'; | ||
| 104 | + }else{ | ||
| 105 | + $collect_info = UpdateLog::where('project_id',$id)->orderBy('updated_at','desc')->first(); | ||
| 106 | + $collect_time = $collect_info->updated_at->format('Y-m-d H:i:s'); | ||
| 104 | } | 107 | } |
| 105 | } | 108 | } |
| 106 | $info['collect_time'] = $collect_time; | 109 | $info['collect_time'] = $collect_time; |
-
请 注册 或 登录 后发表评论