feat: Protobuf 接口更换为 Https

This commit is contained in:
HuanCheng65 2023-07-16 23:23:45 +08:00
parent 5d74a478b5
commit 452abd0b97
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ object RetrofitTiebaApi {
val OFFICIAL_PROTOBUF_TIEBA_API: OfficialProtobufTiebaApi by lazy {
createProtobufApi<OfficialProtobufTiebaApi>(
"http://c.tieba.baidu.com/",
"https://tiebac.baidu.com/",
CommonHeaderInterceptor(
Header.CHARSET to { "UTF-8" },
Header.CLIENT_TYPE to { "2" },
@ -207,7 +207,7 @@ object RetrofitTiebaApi {
val OFFICIAL_PROTOBUF_TIEBA_V12_API: OfficialProtobufTiebaApi by lazy {
createProtobufApi<OfficialProtobufTiebaApi>(
"http://c.tieba.baidu.com/",
"https://tiebac.baidu.com/",
CommonHeaderInterceptor(
Header.CHARSET to { "UTF-8" },
Header.CLIENT_TYPE to { "2" },