Commit b301094b authored by wwccw0591's avatar wwccw0591

pc

parent 3cdbe2c1
......@@ -94,7 +94,7 @@ class MessageServiceModel extends \Business\AbstractModel
{
$memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance();
$unredMessageCount=$memberDb0Redis->tableHGet($toId,'unreadMessageCount');
if($unredMessageCount!==false){
if($unredMessageCount===false){
$messageHistoryDao = \DAO\MessageHistoryModel::getInstance();
$unredMessageCount = $messageHistoryDao->getUnreadCountByToIdAndToType($toId);
$memberDb0Redis->tableHset($toId,'unreadMessageCount',$unredMessageCount);
......
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