作者 lyh

gx

@@ -121,7 +121,7 @@ class AiVideoAutoPublish extends Command @@ -121,7 +121,7 @@ class AiVideoAutoPublish extends Command
121 */ 121 */
122 public function getVideoInfo(){ 122 public function getVideoInfo(){
123 $data = []; 123 $data = [];
124 - $random = 2; 124 + $random = rand(1, 2);
125 if($random == 1){//取产品 125 if($random == 1){//取产品
126 $productModel = new Product(); 126 $productModel = new Product();
127 $info = $productModel->formatQuery(['status'=>1,'title'=>['!=',null],'intro'=>['!=',null]])->select(['title','gallery','intro'])->inRandomOrder()->first(); 127 $info = $productModel->formatQuery(['status'=>1,'title'=>['!=',null],'intro'=>['!=',null]])->select(['title','gallery','intro'])->inRandomOrder()->first();