feat: Protobuf 接口更换为 Https
This commit is contained in:
parent
5d74a478b5
commit
452abd0b97
|
|
@ -179,7 +179,7 @@ object RetrofitTiebaApi {
|
||||||
|
|
||||||
val OFFICIAL_PROTOBUF_TIEBA_API: OfficialProtobufTiebaApi by lazy {
|
val OFFICIAL_PROTOBUF_TIEBA_API: OfficialProtobufTiebaApi by lazy {
|
||||||
createProtobufApi<OfficialProtobufTiebaApi>(
|
createProtobufApi<OfficialProtobufTiebaApi>(
|
||||||
"http://c.tieba.baidu.com/",
|
"https://tiebac.baidu.com/",
|
||||||
CommonHeaderInterceptor(
|
CommonHeaderInterceptor(
|
||||||
Header.CHARSET to { "UTF-8" },
|
Header.CHARSET to { "UTF-8" },
|
||||||
Header.CLIENT_TYPE to { "2" },
|
Header.CLIENT_TYPE to { "2" },
|
||||||
|
|
@ -207,7 +207,7 @@ object RetrofitTiebaApi {
|
||||||
|
|
||||||
val OFFICIAL_PROTOBUF_TIEBA_V12_API: OfficialProtobufTiebaApi by lazy {
|
val OFFICIAL_PROTOBUF_TIEBA_V12_API: OfficialProtobufTiebaApi by lazy {
|
||||||
createProtobufApi<OfficialProtobufTiebaApi>(
|
createProtobufApi<OfficialProtobufTiebaApi>(
|
||||||
"http://c.tieba.baidu.com/",
|
"https://tiebac.baidu.com/",
|
||||||
CommonHeaderInterceptor(
|
CommonHeaderInterceptor(
|
||||||
Header.CHARSET to { "UTF-8" },
|
Header.CHARSET to { "UTF-8" },
|
||||||
Header.CLIENT_TYPE to { "2" },
|
Header.CLIENT_TYPE to { "2" },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue