房间在线列表报错处理

This commit is contained in:
2026-01-02 17:40:24 +08:00
parent f54a9b6728
commit 569bdbf4ce

View File

@@ -2268,7 +2268,7 @@ class Room extends Model
public function room_online_list($room_id, $page = 1, $limit = 15)
{
if (!$room_id) {
return ['code' => 0, 'msg' => '参数错误'];
return ['code' => 0, 'msg' => '参数错误', 'data' => null];
}
$lists['on_pit'] = [];