作者 lyh

gx

@@ -35,7 +35,7 @@ class EditVideoMp4 extends Command @@ -35,7 +35,7 @@ class EditVideoMp4 extends Command
35 35
36 public function handle(){ 36 public function handle(){
37 $projectModel = new Project(); 37 $projectModel = new Project();
38 - $list = $projectModel->list(['is_upgrade'=>0,'delete_status'=>0,'type'=>['!=',0],'id'=>['<=',1356]]); 38 + $list = $projectModel->list(['is_upgrade'=>0,'delete_status'=>0,'type'=>['!=',0],'id'=>['<=',1192]]);
39 $data = []; 39 $data = [];
40 foreach ($list as $v){ 40 foreach ($list as $v){
41 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; 41 echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
@@ -57,8 +57,10 @@ class EditVideoMp4 extends Command @@ -57,8 +57,10 @@ class EditVideoMp4 extends Command
57 public function getHtml(){ 57 public function getHtml(){
58 $templateModel = new BTemplate(); 58 $templateModel = new BTemplate();
59 $templateList = $templateModel->list(); 59 $templateList = $templateModel->list();
60 - foreach ($templateList as $v1){  
61 - $this->getVideoSrc($v1['id'],$v1['main_html'],'main_html',$templateModel); 60 + if(!empty($templateList)){
  61 + foreach ($templateList as $v1){
  62 + $this->getVideoSrc($v1['id'],$v1['main_html'],'main_html',$templateModel);
  63 + }
62 } 64 }
63 return true; 65 return true;
64 } 66 }