Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -291,7 +291,7 @@ class WebTraffic extends Command | @@ -291,7 +291,7 @@ class WebTraffic extends Command | ||
| 291 | }else{ | 291 | }else{ |
| 292 | //大于9个月项目 | 292 | //大于9个月项目 |
| 293 | $startTime = Carbon::now()->addMonths(-9)->startOfDay()->toDateTimeString(); | 293 | $startTime = Carbon::now()->addMonths(-9)->startOfDay()->toDateTimeString(); |
| 294 | - $query->whereBetween('pdo.start_date', '<', $startTime); | 294 | + $query->where('pdo.start_date', '<', $startTime); |
| 295 | } | 295 | } |
| 296 | })->select('pdo.project_id')->forPage($page, 500)->get(); | 296 | })->select('pdo.project_id')->forPage($page, 500)->get(); |
| 297 | //其他地方在引流的域名 | 297 | //其他地方在引流的域名 |
| @@ -213,7 +213,7 @@ class OptimizeController extends BaseController | @@ -213,7 +213,7 @@ class OptimizeController extends BaseController | ||
| 213 | if(isset($this->map['level']) && !empty($this->map['level'])){ | 213 | if(isset($this->map['level']) && !empty($this->map['level'])){ |
| 214 | $query = $query->whereRaw("FIND_IN_SET(?, gl_project.level) > 0", [$this->map['level']]); | 214 | $query = $query->whereRaw("FIND_IN_SET(?, gl_project.level) > 0", [$this->map['level']]); |
| 215 | } | 215 | } |
| 216 | - if(isset($this->map['online_updated_at']) && !empty($this->map['online_updated_at'])){ | 216 | + if(isset($this->map['online_updated_at']) && !empty($this->map['online_updated_at']) && is_array($this->map['online_updated_at'])){ |
| 217 | $query = $query->whereBetween('gl_project_deploy_optimize.updated_at', $this->map['online_updated_at']); | 217 | $query = $query->whereBetween('gl_project_deploy_optimize.updated_at', $this->map['online_updated_at']); |
| 218 | } | 218 | } |
| 219 | if(isset($this->map['special'])){ | 219 | if(isset($this->map['special'])){ |
| @@ -55,6 +55,8 @@ class RouteMap extends Base | @@ -55,6 +55,8 @@ class RouteMap extends Base | ||
| 55 | public static function generateRoute($title, $source, $source_id, $project_id){ | 55 | public static function generateRoute($title, $source, $source_id, $project_id){ |
| 56 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ | 56 | if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){ |
| 57 | $title = Translate::tran($title, 'en'); | 57 | $title = Translate::tran($title, 'en'); |
| 58 | + }elseif (preg_match('/[а-яА-Я]/u', $title)) { | ||
| 59 | + $title = Translate::tran($title, 'en'); | ||
| 58 | } | 60 | } |
| 59 | $i=1; | 61 | $i=1; |
| 60 | $sign = generateRoute($title); | 62 | $sign = generateRoute($title); |
-
请 注册 或 登录 后发表评论