Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
3 个修改的文件
包含
34 行增加
和
4 行删除
| @@ -216,7 +216,9 @@ class OptimizeController extends BaseController | @@ -216,7 +216,9 @@ class OptimizeController extends BaseController | ||
| 216 | $query = $query->where('gl_project_deploy_build.test_domain','like','%'.$this->map['test_domain'].'%'); | 216 | $query = $query->where('gl_project_deploy_build.test_domain','like','%'.$this->map['test_domain'].'%'); |
| 217 | } | 217 | } |
| 218 | $query = $query->whereIn('gl_project.type',[2,4]);//TODO::2,4代表优化项目 | 218 | $query = $query->whereIn('gl_project.type',[2,4]);//TODO::2,4代表优化项目 |
| 219 | - $query = $query->where('gl_project_online_check.qa_status',1); | 219 | + $query->where(function ($subQuery) { |
| 220 | + $subQuery->orwhere('gl_project_online_check.qa_status',1)->orwhere('gl_project.is_upgrade',1); | ||
| 221 | + }); | ||
| 220 | return $query; | 222 | return $query; |
| 221 | } | 223 | } |
| 222 | 224 |
| @@ -276,9 +276,6 @@ class ProductLogic extends BaseLogic | @@ -276,9 +276,6 @@ class ProductLogic extends BaseLogic | ||
| 276 | $param['thumb'] = Arr::a2s([]); | 276 | $param['thumb'] = Arr::a2s([]); |
| 277 | } | 277 | } |
| 278 | if(isset($param['video']) && !empty($param['video'])){ | 278 | if(isset($param['video']) && !empty($param['video'])){ |
| 279 | - foreach ($param['video'] as $k => $v){ | ||
| 280 | - $param['video'][$k] = $v; | ||
| 281 | - } | ||
| 282 | $param['video'] = Arr::a2s($param['video'] ?? []); | 279 | $param['video'] = Arr::a2s($param['video'] ?? []); |
| 283 | }else{ | 280 | }else{ |
| 284 | $param['video'] = Arr::a2s([]); | 281 | $param['video'] = Arr::a2s([]); |
app/Listeners/CopyProjectListener.php
0 → 100644
| 1 | +<?php | ||
| 2 | + | ||
| 3 | +namespace App\Listeners; | ||
| 4 | + | ||
| 5 | +use App\Events\UpdateHtml; | ||
| 6 | +use App\Jobs\updateHtmlJob; | ||
| 7 | +use Illuminate\Contracts\Queue\ShouldQueue; | ||
| 8 | + | ||
| 9 | +class CopyProjectListener implements ShouldQueue | ||
| 10 | +{ | ||
| 11 | + /** | ||
| 12 | + * 更新页面 | ||
| 13 | + * @return void | ||
| 14 | + */ | ||
| 15 | + public function __construct() | ||
| 16 | + { | ||
| 17 | + // | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * Handle the event. | ||
| 22 | + * | ||
| 23 | + * @param UpdateHtml $event | ||
| 24 | + * @return void | ||
| 25 | + */ | ||
| 26 | + public function handle(UpdateHtml $event) | ||
| 27 | + { | ||
| 28 | + $data = $event->data; | ||
| 29 | + dump($data); | ||
| 30 | + } | ||
| 31 | +} |
-
请 注册 或 登录 后发表评论