作者 lyh

gx脚本导出产品

@@ -39,7 +39,7 @@ class AiBlogTask extends Command @@ -39,7 +39,7 @@ class AiBlogTask extends Command
39 $aiBlogTaskModel = new AiBlogTaskModel(); 39 $aiBlogTaskModel = new AiBlogTaskModel();
40 while (true){ 40 while (true){
41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first(); 41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first();
42 - if($info === false){ 42 + if(empty($info)){
43 sleep(30); 43 sleep(30);
44 continue; 44 continue;
45 } 45 }
@@ -260,4 +260,5 @@ class SuppliersController extends BaseController @@ -260,4 +260,5 @@ class SuppliersController extends BaseController
260 $res = $this->_action($api_url,$action_name,$param); 260 $res = $this->_action($api_url,$action_name,$param);
261 $this->response('success',Code::SUCCESS,$res); 261 $this->response('success',Code::SUCCESS,$res);
262 } 262 }
  263 +
263 } 264 }