From b9daed6d59e0564fbb3a32e34ff06c7fe1a0136a Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Sat, 11 Mar 2023 00:04:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A8=E6=80=81=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../post/api/interfaces/impls/MixedTiebaApiImpl.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/impls/MixedTiebaApiImpl.kt b/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/impls/MixedTiebaApiImpl.kt index ddcb8c3f..942ac167 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/impls/MixedTiebaApiImpl.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/impls/MixedTiebaApiImpl.kt @@ -3,6 +3,7 @@ package com.huanchengfly.tieba.post.api.interfaces.impls import android.os.Build import android.text.TextUtils import com.huanchengfly.tieba.post.App +import com.huanchengfly.tieba.post.api.ClientVersion import com.huanchengfly.tieba.post.api.ForumSortType import com.huanchengfly.tieba.post.api.Param import com.huanchengfly.tieba.post.api.SearchThreadFilter @@ -56,6 +57,9 @@ import com.huanchengfly.tieba.post.api.models.protos.frsPage.FrsPageResponse import com.huanchengfly.tieba.post.api.models.protos.hotThreadList.HotThreadListRequest import com.huanchengfly.tieba.post.api.models.protos.hotThreadList.HotThreadListRequestData import com.huanchengfly.tieba.post.api.models.protos.hotThreadList.HotThreadListResponse +import com.huanchengfly.tieba.post.api.models.protos.pbPage.PbPageRequest +import com.huanchengfly.tieba.post.api.models.protos.pbPage.PbPageRequestData +import com.huanchengfly.tieba.post.api.models.protos.pbPage.PbPageResponse import com.huanchengfly.tieba.post.api.models.protos.personalized.PersonalizedRequest import com.huanchengfly.tieba.post.api.models.protos.personalized.PersonalizedRequestData import com.huanchengfly.tieba.post.api.models.protos.personalized.PersonalizedResponse @@ -108,12 +112,12 @@ object MixedTiebaApiImpl : ITiebaApi { } override fun personalizedProtoFlow(loadType: Int, page: Int): Flow { - return RetrofitTiebaApi.OFFICIAL_PROTOBUF_TIEBA_API.personalizedFlow( + return RetrofitTiebaApi.OFFICIAL_PROTOBUF_TIEBA_V12_API.personalizedFlow( buildProtobufRequestBody( data = PersonalizedRequest( PersonalizedRequestData( app_pos = buildAppPosInfo(), - common = buildCommonRequest(), + common = buildCommonRequest(clientVersion = ClientVersion.TIEBA_V12), load_type = loadType, pn = page, need_tags = 0, @@ -131,7 +135,8 @@ object MixedTiebaApiImpl : ITiebaApi { scr_h = getScreenHeight(), scr_w = getScreenWidth() ) - ) + ), + clientVersion = ClientVersion.TIEBA_V12 ) ) }