Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
2f7c1652
Commit
2f7c1652
authored
Sep 03, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add header is_gp_pkg
parent
b3d37595
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
+13
-1
src/main/java/com/common/bean/DisplayBean.java
+9
-1
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
+3
-0
src/main/java/tech/starwin/network/DefaultHeaderAddInterceptor.java
+1
-0
No files found.
src/main/java/com/common/bean/DisplayBean.java
View file @
2f7c1652
...
...
@@ -22,7 +22,7 @@ public class DisplayBean implements Serializable {
private
String
advancePictureQualitySecretKey
;
private
String
restUrlSignKey
;
private
String
harvestGrantGranted
;
private
boolean
fakeProductFlag
=
false
;
private
String
motionAppKey
;
private
String
motionSecret
;
...
...
@@ -111,6 +111,14 @@ public class DisplayBean implements Serializable {
this
.
advancePictureQualitySecretKey
=
advancePictureQualitySecretKey
;
}
public
boolean
isFakeProductFlag
()
{
return
fakeProductFlag
;
}
public
void
setFakeProductFlag
(
boolean
fakeProductFlag
)
{
this
.
fakeProductFlag
=
fakeProductFlag
;
}
public
long
getUpdateTime
()
{
return
updateTime
;
}
...
...
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
View file @
2f7c1652
...
...
@@ -43,6 +43,7 @@ import com.common.bean.RegionBean;
import
com.common.bean.TokenInfoBean
;
import
com.common.bean.UserBankInfo
;
import
com.common.bean.UserBean
;
import
com.common.toolbox.PluginConfig
;
import
com.common.toolbox.app_utils.DeviceInfo
;
import
com.common.toolbox.tracker.TrackEvent
;
import
com.facebook.libfbref.FbDeepLink
;
...
...
@@ -634,6 +635,8 @@ public class UserPresenter extends BasePresenter<UserApi> {
AccountKitUtils
.
initAccountKit
(
appId
,
LibConfig
.
APP_NAME
,
token
);
}
}
//是否显示假界面
PluginConfig
.
IS_FAKE_MODE
=
data
.
isFakeProductFlag
();
//不开启同盾
if
(!
data
.
isTongDunFlag
())
{
LibConfig
.
TONGDUN_PARENT_KEY
=
""
;
...
...
src/main/java/tech/starwin/network/DefaultHeaderAddInterceptor.java
View file @
2f7c1652
...
...
@@ -73,6 +73,7 @@ class DefaultHeaderAddInterceptor implements Interceptor {
// .header("X-APP-SIM-MOBILE", getSimInfo())
.
header
(
"X-AF-ID"
,
LibConfig
.
APPSFLYER_DEV_KEY
==
null
?
""
:
LibConfig
.
APPSFLYER_DEV_KEY
)
.
header
(
"X-GA-ID"
,
getGAId
())
.
header
(
"X-GP-PKG-FLAG"
,
String
.
valueOf
(!
LibConfig
.
IS_COLLECT_MODE
))
.
header
(
"X-APP-CODE-VERSION"
,
"ID_V2"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment