Commit 342f0d36 authored by christ's avatar christ

pc

parent b53c3b66
......@@ -356,6 +356,10 @@ class MessageServiceModel extends \Business\AbstractModel
public function update($fromId, $fromType, $toId, $toType)
{
if($fromId==$toId){
$fromType=ApiConst::memberMessageType;
$toType=ApiConst::storeMessageType;
}
$messageHistoryDao = \DAO\MessageHistoryModel::getInstance();
$messageOneDao = \DAO\MessageOneModel::getInstance();
$messageOneDao->setDb(DbNameConst::masterDBConnectName);
......@@ -366,8 +370,6 @@ class MessageServiceModel extends \Business\AbstractModel
if($fromId!=$toId){
$isSuccess=-1*$isSuccess;
$memberDb0Redis->tableHIncrBy($fromId,'unread_message_count',$isSuccess);
}else{
$messageHistoryDao->updateByFromIdAndSelfTypeAndToIdAndToType($toId, $toType,$fromId, $fromType);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment