From 5d9d7ae48e19e3b394d81e632307a6b660aa3cdc Mon Sep 17 00:00:00 2001 From: czp Date: Sun, 4 Feb 2018 23:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A9=BA=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=9C=89=E5=85=B3=E7=9A=84=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hiczp/bilibili/api/passport/PassportService.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hiczp/bilibili/api/passport/PassportService.java b/src/main/java/com/hiczp/bilibili/api/passport/PassportService.java index ec50e81..f8e4833 100644 --- a/src/main/java/com/hiczp/bilibili/api/passport/PassportService.java +++ b/src/main/java/com/hiczp/bilibili/api/passport/PassportService.java @@ -11,9 +11,12 @@ import retrofit2.http.Header; import retrofit2.http.POST; import retrofit2.http.Query; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; + public interface PassportService { //获取验证码 - default okhttp3.Call getCaptcha(String cookies) { + default okhttp3.Call getCaptcha(@Nonnull String cookies) { return new OkHttpClient.Builder() .addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BASIC)) .build() @@ -47,5 +50,5 @@ public interface PassportService { //TODO sso 尚不明确 @Deprecated @GET("api/login/sso") - Call sso(@Query("access_token") String accessToken, @Query("gourl") String goUrl); + Call sso(@Query("access_token") String accessToken, @Nullable @Query("gourl") String goUrl); }