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