From b1dd916ff3a421c4549699f40de3b4f1d83b4ad8 Mon Sep 17 00:00:00 2001 From: czp Date: Thu, 15 Mar 2018 22:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E4=B8=8E=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/hiczp/bilibili/api/ServerErrorCode.java | 5 +++++ src/main/java/com/hiczp/bilibili/api/live/LiveService.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hiczp/bilibili/api/ServerErrorCode.java b/src/main/java/com/hiczp/bilibili/api/ServerErrorCode.java index 7e0a944..632ee55 100644 --- a/src/main/java/com/hiczp/bilibili/api/ServerErrorCode.java +++ b/src/main/java/com/hiczp/bilibili/api/ServerErrorCode.java @@ -90,6 +90,11 @@ public class ServerErrorCode { * "请登录" */ public static final int PLEASE_LOGIN0 = 32205; + /** + * "message": "invalid request" + * "data": "bad token" + */ + public static final int INVALID_REQUEST = 65530; /** * "请先登录" */ diff --git a/src/main/java/com/hiczp/bilibili/api/live/LiveService.java b/src/main/java/com/hiczp/bilibili/api/live/LiveService.java index 216e525..4e6eb30 100644 --- a/src/main/java/com/hiczp/bilibili/api/live/LiveService.java +++ b/src/main/java/com/hiczp/bilibili/api/live/LiveService.java @@ -247,7 +247,7 @@ public interface LiveService { * @param bagId 礼物在自己背包里的 ID * @param random 随机数 * @return roomUserId 与 roomId 不匹配时返回 200012 - * @return bagId 错误时(背包里没有这个礼物)返回 200019 + * bagId 错误时(背包里没有这个礼物)返回 200019 */ @POST("AppBag/send") @FormUrlEncoded @@ -526,6 +526,7 @@ public interface LiveService { * 将 700 银瓜子兑换为 1 硬币, 每个用户每天只能换一次 * * @return 已经兑换过时返回 403 + * 2018-03-15 访问此 API 必须有一个合法的 UA, 否则返回 65530 */ @POST("AppExchange/silver2coin") Call silver2Coin();