Message::send 반환값 정리

This commit is contained in:
2018-04-10 02:53:35 +09:00
parent fe4823bb8d
commit b8636763c1
+6 -5
View File
@@ -279,19 +279,20 @@ class Message
if($sendID){
$this->mailbox = $senderMailbox;
$this->isInboxMail = false;
$this->id = $sendID;
$this->msgOption['senderMessageID'] = $sendID;
$this->$sendCnt=1;
$this->$sendCnt = 1;
}
list($receiverMailbox, $receiveID) = $this->sendToReceiver();
if(!$receiveID){
$this->id = $sendID;
return $sendID;
}
$this->mailbox = $receiverMailbox;
$this->isInboxMail = true;
$this->id = $receisendID;
$this->$sendCnt=2;
$this->msgOption['receiverMessageID'] = $sendID;
$this->id = $receiveID;
$this->msgOption['receiverMessageID'] = $receiveID;
$this->$sendCnt = 2;
return $receiveID;
}
}