|
|
|
@ -290,6 +290,19 @@ object AgentService : CoroutineScope { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
fun applyConfigUpdate(config: Map<String, Any>) { |
|
|
|
try { |
|
|
|
serverurl = config["serverurl"]?.toString() ?: serverurl |
|
|
|
usertoken = config["usertoken"]?.toString() ?: usertoken |
|
|
|
callingToolText = config["callingToolText"]?.toString() ?: callingToolText |
|
|
|
insufficientIntegralText = config["insufficientIntegralText"]?.toString() ?: insufficientIntegralText |
|
|
|
vipExptime = config["vipexptime"]?.toString()?.toIntOrNull() ?: 0; |
|
|
|
navigationMode = config["navigationMode"]?.toString() ?: navigationMode |
|
|
|
} catch (e: Exception) { |
|
|
|
Log.e(TAG, "应用配置更新失败: ${e.message}") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 释放所有资源 |
|
|
|
*/ |
|
|
|
|