正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -47,6 +47,8 @@ class WorkchatMessageSend extends Command | @@ -47,6 +47,8 @@ class WorkchatMessageSend extends Command | ||
| 47 | $task->status = MessagePush::STATUS_SUCCESS; | 47 | $task->status = MessagePush::STATUS_SUCCESS; |
| 48 | }catch (ConnectionException $e){ | 48 | }catch (ConnectionException $e){ |
| 49 | $this->output('推送消息' . $task->id . '超时'); | 49 | $this->output('推送消息' . $task->id . '超时'); |
| 50 | + $task->status = MessagePush::STATUS_ERROR; | ||
| 51 | + $task->remark = '请求超时'; | ||
| 50 | }catch (\Exception $e){ | 52 | }catch (\Exception $e){ |
| 51 | $this->output('推送消息' . $task->id . '失败:' . $e->getMessage()); | 53 | $this->output('推送消息' . $task->id . '失败:' . $e->getMessage()); |
| 52 | $task->status = MessagePush::STATUS_ERROR; | 54 | $task->status = MessagePush::STATUS_ERROR; |
-
请 注册 或 登录 后发表评论