Commit a9226a09 authored by christ's avatar christ

message

parent 127640ed
...@@ -359,8 +359,10 @@ class MessageServiceModel extends \Business\AbstractModel ...@@ -359,8 +359,10 @@ class MessageServiceModel extends \Business\AbstractModel
$isSuccess = $messageHistoryDao->updateByFromIdAndSelfTypeAndToIdAndToType($fromId, $fromType, $toId, $toType); $isSuccess = $messageHistoryDao->updateByFromIdAndSelfTypeAndToIdAndToType($fromId, $fromType, $toId, $toType);
$memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance(); $memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance();
if($isSuccess){ if($isSuccess){
$isSuccess=-1*$isSuccess; if($fromId!=$toId){
$memberDb0Redis->tableHIncrBy($fromId,'unread_message_count',$isSuccess); $isSuccess=-1*$isSuccess;
$memberDb0Redis->tableHIncrBy($fromId,'unread_message_count',$isSuccess);
}
} }
return $isSuccess; return $isSuccess;
......
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