改群名
This commit is contained in:
@@ -175,12 +175,14 @@ class MessageController extends ApiController
|
||||
*/
|
||||
public function getSessionList(Request $request): Response
|
||||
{
|
||||
|
||||
|
||||
// 获取所有会话ID
|
||||
$sessionIds = Db::name('chat_message')->where('from_id', $this->uid)->WhereOr('to_id', $this->uid)
|
||||
->group('session_id')->column('session_id');
|
||||
if (empty($sessionIds)) {
|
||||
return $this->success();
|
||||
}
|
||||
// $sessionIds = Db::name('chat_message')->where('from_id', $this->uid)->WhereOr('to_id', $this->uid)
|
||||
// ->group('session_id')->column('session_id');
|
||||
// if (empty($sessionIds)) {
|
||||
// return $this->success();
|
||||
// }
|
||||
$list = Redis::get('usermsg:list:' . $this->user_type . ':' . $this->uid);
|
||||
if($list) {
|
||||
$data = json_decode($list, true);
|
||||
|
||||
Reference in New Issue
Block a user