Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
3e5af6d1
Commit
3e5af6d1
authored
Aug 12, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update BGeneralBusiness组件提供C端初始化能力
parent
913259e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
ZapServiceActionConstants.kt
.../com/yidian/bcommon/services/ZapServiceActionConstants.kt
+3
-0
GeneralAbilityService.kt
...huoquan/bgeneralbusiness/service/GeneralAbilityService.kt
+16
-0
No files found.
CommonLib/BCommon/src/main/java/com/yidian/bcommon/services/ZapServiceActionConstants.kt
View file @
3e5af6d1
...
@@ -48,5 +48,8 @@ class ZapServiceActionConstants {
...
@@ -48,5 +48,8 @@ class ZapServiceActionConstants {
// 获取TowerPro通用配置数据
// 获取TowerPro通用配置数据
const
val
ActionGetTowerProCommonConfig
=
"getTowerProCommonConfig"
const
val
ActionGetTowerProCommonConfig
=
"getTowerProCommonConfig"
// C端初始化
const
val
ActionClintCInit
=
"clientCInit"
}
}
}
}
Components/BGeneralBusiness/src/main/java/com/yidian/shenghuoquan/bgeneralbusiness/service/GeneralAbilityService.kt
View file @
3e5af6d1
...
@@ -2,6 +2,7 @@ package com.yidian.shenghuoquan.bgeneralbusiness.service
...
@@ -2,6 +2,7 @@ package com.yidian.shenghuoquan.bgeneralbusiness.service
import
com.google.gson.Gson
import
com.google.gson.Gson
import
com.yidian.bcommon.constant.AppConfig
import
com.yidian.bcommon.constant.AppConfig
import
com.yidian.bcommon.constant.GlobalConstants
import
com.yidian.bcommon.constant.RunConfig
import
com.yidian.bcommon.constant.RunConfig
import
com.yidian.bcommon.http.bean.GetCommonConfigBean
import
com.yidian.bcommon.http.bean.GetCommonConfigBean
import
com.yidian.bcommon.http.callback.IGetCommonConfigCallback
import
com.yidian.bcommon.http.callback.IGetCommonConfigCallback
...
@@ -27,6 +28,7 @@ class GeneralAbilityService : ZapService() {
...
@@ -27,6 +28,7 @@ class GeneralAbilityService : ZapService() {
ZapServiceActionConstants
.
ActionRequestSmsCode
->
requestSmsCode
(
params
,
resolver
)
ZapServiceActionConstants
.
ActionRequestSmsCode
->
requestSmsCode
(
params
,
resolver
)
ZapServiceActionConstants
.
ActionLazyInit
->
lazyInit
()
ZapServiceActionConstants
.
ActionLazyInit
->
lazyInit
()
ZapServiceActionConstants
.
ActionGetTowerProCommonConfig
->
getTowerProCommonConfig
(
resolver
)
ZapServiceActionConstants
.
ActionGetTowerProCommonConfig
->
getTowerProCommonConfig
(
resolver
)
ZapServiceActionConstants
.
ActionClintCInit
->
clientCInit
(
params
)
}
}
}
}
...
@@ -84,4 +86,18 @@ class GeneralAbilityService : ZapService() {
...
@@ -84,4 +86,18 @@ class GeneralAbilityService : ZapService() {
)
)
)
)
}
}
/**
* C端初始化调用
*/
private
fun
clientCInit
(
params
:
JSONObject
)
{
val
env
=
params
.
optString
(
"env"
)
val
authority
=
params
.
optString
(
"authority"
)
when
(
env
)
{
"dev"
->
RunConfig
.
switchEnvironment
(
RunConfig
.
RunEnvironment
.
DEV
)
"test"
->
RunConfig
.
switchEnvironment
(
RunConfig
.
RunEnvironment
.
TEST
)
"prod"
->
RunConfig
.
switchEnvironment
(
RunConfig
.
RunEnvironment
.
PROD
)
}
GlobalConstants
.
AUTHORITY
=
authority
}
}
}
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