From 28167c7f4916a2e218ba0d2347b1c772fa3231f4 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 14 Oct 2022 21:31:57 +0800 Subject: [PATCH] add user info --- .../com/yutou/qqbot/models/BiliBili/BiliBiliLive.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java index 911c9ae..3749cb5 100644 --- a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java +++ b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java @@ -82,9 +82,11 @@ public class BiliBiliLive extends Model { message.append(id) .append(":") .append(BiliBiliUtils.getUserInfo( - BiliBiliUtils.getLiveRoom(Integer.parseInt(id)) - .getJSONObject("data") - .getInteger("uid"))) + BiliBiliUtils.getLiveRoom(Integer.parseInt(id)) + .getJSONObject("data") + .getInteger("uid")) + .getJSONObject("data") + .getString("name")) .append("\n"); } QQBotManager.getInstance().sendMessage(qq, message.toString());