Commit ed446a81 authored by wwccw0591's avatar wwccw0591

pc

parent 26f2f1fe
......@@ -39,7 +39,7 @@ class MessageServiceModel extends \Business\AbstractModel
*/
private static $_instance = null;
/**
/**update
* 单例模式获取类实例
*
* @ccw
......@@ -334,7 +334,11 @@ class MessageServiceModel extends \Business\AbstractModel
$messageOneDao->updateUnreadField($fromId, $fromType, $toId, $toType);
$isSuccess = $messageHistoryDao->updateByFromIdAndSelfTypeAndToIdAndToType($fromId, $fromType, $toId, $toType);
$memberDb0Redis=\Redis\Db0\MemberRedisModel::getInstance();
$memberDb0Redis->tableHDel($fromId,'unread_message_count');
if($isSuccess){
$isSuccess=-1*$isSuccess;
$memberDb0Redis->tableHIncrBy($fromId,'unread_message_count',$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