将 actionKey 设为固定参数

This commit is contained in:
czp 2018-03-07 18:11:43 +08:00
parent 4e7b89f4ee
commit 4366bb2420
2 changed files with 2 additions and 6 deletions

View File

@ -132,6 +132,7 @@ public class BilibiliAPI implements BilibiliServiceProvider, BilibiliCaptchaProv
.addInterceptor(new AddFixedParamsInterceptor(
"_device", "android",
"_hwid", bilibiliClientProperties.getHardwareId(),
"actionKey", "appkey",
"build", bilibiliClientProperties.getBuild(),
"mobi_app", "android",
"platform", "android",

View File

@ -230,14 +230,9 @@ public interface LiveService {
//瓜子商店
//侧拉抽屉 -> 直播中心 -> 瓜子商店 -> 银瓜子兑换 -> 硬币银瓜子互换 -> 兑换硬币
// 700 银瓜子兑换为 1 硬币, 每个用户每天只能换一次
//actionKey 是固定值, "appkey"
//已经兑换过时返回 403
@POST("AppExchange/silver2coin")
Call<Silver2CoinResponseEntity> silver2Coin(@Query("actionKey") String actionKey);
default Call<Silver2CoinResponseEntity> silver2Coin() {
return silver2Coin("appkey");
}
Call<Silver2CoinResponseEntity> silver2Coin();
//扭蛋机
//侧拉抽屉 -> 直播中心 -> 扭蛋机 -> 普通扭蛋