正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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(); |
-
请 注册 或 登录 后发表评论