版本号更新至 5.6.0,全部接口请求添加 version 和 channel 请求头

This commit is contained in:
juntao
2021-12-15 16:04:36 +08:00
parent 76b8988597
commit 831c698f8d
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class OkHttpCacheInterceptor implements Interceptor {
.build();
// 添加渠道和版本
if (url.contains("/games") && !url.contains("version")) {
if (!url.contains("version")) {
url = request.url().toString();
request = request.newBuilder()
.url(addVersionAndChannel(url))

View File

@ -7,8 +7,8 @@ ext {
targetSdkVersion = 26
// application info (每个大版本之间的 versionCode 增加 20)
versionCode = 450
versionName = "5.5.0"
versionCode = 470
versionName = "5.6.0"
applicationId = "com.gh.gamecenter"
// AndroidX