[3.4.0] fix bug of security key and socket ststus
This commit is contained in:
@@ -253,11 +253,11 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
|
||||
if (FunctionBuildConfig.isSecure) {
|
||||
context?.let {
|
||||
val authStatus =
|
||||
SharedPrefsMgr.getInstance(it).getBoolean("passportAuth-${DebugConfig.getNetMode()}", false)
|
||||
SharedPrefsMgr.getInstance(it).getBoolean("securityKey-${DebugConfig.getNetMode()}", false)
|
||||
if (authStatus) {
|
||||
// clientConfig设置auth值,并带入header
|
||||
clientConfig.authPubKey = SharedPrefsMgr.getInstance(it)
|
||||
.getString("passportAuthKey-${DebugConfig.getNetMode()}", "")
|
||||
.getString("securityKey-${DebugConfig.getNetMode()}", "")
|
||||
return@let
|
||||
}
|
||||
// 安全校验
|
||||
@@ -271,15 +271,15 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_PASSPORT_AUTH_OK,
|
||||
paramIndexes = [0]
|
||||
)
|
||||
override fun onSuccess(secretKey: String) {
|
||||
override fun onSuccess(securityKey: String) {
|
||||
CallerLogger.d(
|
||||
"$M_MAIN$TAG",
|
||||
"onSuccess secretKey:$secretKey , thread:${Thread.currentThread().name}"
|
||||
"onSuccess securityKey:$securityKey , thread:${Thread.currentThread().name}"
|
||||
)
|
||||
clientConfig.authPubKey = secretKey
|
||||
clientConfig.securityKey = securityKey
|
||||
SharedPrefsMgr.getInstance(it)
|
||||
.putString("passportAuthKey-${DebugConfig.getNetMode()}", secretKey)
|
||||
SharedPrefsMgr.getInstance(it).putBoolean("passportAuth-${DebugConfig.getNetMode()}", true)
|
||||
.putString("securityKey-${DebugConfig.getNetMode()}", securityKey)
|
||||
SharedPrefsMgr.getInstance(it).putBoolean("securityKey-${DebugConfig.getNetMode()}", true)
|
||||
}
|
||||
|
||||
@ChainLog(
|
||||
|
||||
@@ -66,23 +66,23 @@ SERVICE_BIZ_VERSION=1.2.4
|
||||
LOGLIB_VERSION=1.7.0
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求LOGLIB_VERSION
|
||||
MOGO_NETWORK_VERSION=1.4.7.11
|
||||
MOGO_NETWORK_VERSION=1.4.7.12
|
||||
# 鉴权
|
||||
MOGO_PASSPORT_VERSION=1.4.7.11
|
||||
MOGO_PASSPORT_VERSION=1.4.7.12
|
||||
# 常链接
|
||||
MOGO_SOCKET_VERSION=1.4.7.11
|
||||
MOGO_SOCKET_VERSION=1.4.7.12
|
||||
# 数据采集
|
||||
MOGO_REALTIME_VERSION=1.4.7.11
|
||||
MOGO_REALTIME_VERSION=1.4.7.12
|
||||
# 探路,道路事件发布,获取
|
||||
MOGO_TANLU_VERSION=1.4.7.11
|
||||
MOGO_TANLU_VERSION=1.4.7.12
|
||||
# 直播推流
|
||||
MOGO_LIVE_VERSION=1.4.7.11
|
||||
MOGO_LIVE_VERSION=1.4.7.12
|
||||
# 直播拉流
|
||||
MOGO_TRAFFICLIVE_VERSION=1.4.7.11
|
||||
MOGO_TRAFFICLIVE_VERSION=1.4.7.12
|
||||
# 定位服务
|
||||
MOGO_LOCATION_VERSION=1.4.7.11
|
||||
MOGO_LOCATION_VERSION=1.4.7.12
|
||||
# 远程通讯模块
|
||||
MOGO_TELEMATIC_VERSION=1.4.7.11
|
||||
MOGO_TELEMATIC_VERSION=1.4.7.12
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=2.14.1.5
|
||||
|
||||
Reference in New Issue
Block a user