正在显示
1 个修改的文件
包含
14 行增加
和
14 行删除
@@ -184,20 +184,20 @@ class MessageItem { | @@ -184,20 +184,20 @@ class MessageItem { | ||
184 | public function __call(string $name, array $arguments) | 184 | public function __call(string $name, array $arguments) |
185 | { | 185 | { |
186 | switch ($name){ | 186 | switch ($name){ |
187 | - case 'seen':{return $this->msg->uid($this->uid)->seen();} // 已读 | ||
188 | - case 'unseen':{return $this->msg->uid($this->uid)->unseen();} // 未读 | ||
189 | - case 'deleted':{return $this->msg->uid($this->uid)->deleted();}//删除 | ||
190 | - case 'undeleted':{return $this->msg->uid($this->uid)->undeleted();}//取消删除 | ||
191 | - case 'flagged':{return $this->msg->uid($this->uid)->flagged();}//星标 | ||
192 | - case 'unflagged':{return $this->msg->uid($this->uid)->unflagged();}//取消星标 | ||
193 | - case 'recent':{return $this->msg->uid($this->uid)->recent();}//最近 | ||
194 | - case 'unrecent':{return $this->msg->uid($this->uid)->unrecent();}// 取消最近 | ||
195 | - case 'answered':{return $this->msg->uid($this->uid)->answered();} // 已回复 | ||
196 | - case 'unanswered':{return $this->msg->uid($this->uid)->unanswered();}// 取消已回复 | ||
197 | - case 'draft':{return $this->msg->uid($this->uid)->draft();}// 草稿 | ||
198 | - case 'undraft':{return $this->msg->uid($this->uid)->undraft();}//取消草稿 | ||
199 | - case 'move':{return $this->msg->uid($this->uid)->move(...$arguments);}//移动当前邮件到指定目录 | ||
200 | - case 'copy':{return $this->msg->uid($this->uid)->copy(...$arguments);}//移动当前邮件到指定目录 | 187 | + case 'seen':{} // 已读 |
188 | + case 'unseen':{} // 未读 | ||
189 | + case 'deleted':{}//删除 | ||
190 | + case 'undeleted':{}//取消删除 | ||
191 | + case 'flagged':{}//星标 | ||
192 | + case 'unflagged':{}//取消星标 | ||
193 | + case 'recent':{}//最近 | ||
194 | + case 'unrecent':{}// 取消最近 | ||
195 | + case 'answered':{} // 已回复 | ||
196 | + case 'unanswered':{}// 取消已回复 | ||
197 | + case 'draft':{}// 草稿 | ||
198 | + case 'undraft':{}//取消草稿 | ||
199 | + case 'move':{}//移动当前邮件到指定目录 | ||
200 | + case 'copy':{return $this->msg->uid($this->uid)->{$name}(...$arguments);}//移动当前邮件到指定目录 | ||
201 | default:{ | 201 | default:{ |
202 | throw new \Exception('未定义函数 '.$name); | 202 | throw new \Exception('未定义函数 '.$name); |
203 | } | 203 | } |
-
请 注册 或 登录 后发表评论