正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -76,6 +76,9 @@ class OperationHeartbeatController extends BaseController | @@ -76,6 +76,9 @@ class OperationHeartbeatController extends BaseController | ||
| 76 | 'is_list'=>$this->param['is_list'],'is_custom'=>$this->param['is_custom'],'is_template'=>$this->param['is_template']]; | 76 | 'is_list'=>$this->param['is_list'],'is_custom'=>$this->param['is_custom'],'is_template'=>$this->param['is_template']]; |
| 77 | $operationHeartbeatModel = new OperationHeartbeat(); | 77 | $operationHeartbeatModel = new OperationHeartbeat(); |
| 78 | $info = $operationHeartbeatModel->read($condition,['id','status']); | 78 | $info = $operationHeartbeatModel->read($condition,['id','status']); |
| 79 | + if($info === false){ | ||
| 80 | + $info = []; | ||
| 81 | + } | ||
| 79 | $this->response('success',Code::SUCCESS,$info); | 82 | $this->response('success',Code::SUCCESS,$info); |
| 80 | } | 83 | } |
| 81 | } | 84 | } |
-
请 注册 或 登录 后发表评论