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