|
|
@@ -139,7 +139,7 @@ class MessageService extends BaseService
|
|
|
RedisService::keyDel("caches:messages:un_*");
|
|
|
}
|
|
|
|
|
|
- $datas['unread'] = $countModel->where(['a.is_read'=>2])->count('id');
|
|
|
+ $datas['unread'] = $countModel->where(['a.is_read'=>2])->count('a.id');
|
|
|
arsort($datas['data'], true);
|
|
|
$datas['data'] = array_reverse($datas['data'], false);
|
|
|
RedisService::set($cacheKey, $datas, rand(3, 5));
|