删除日志
This commit is contained in:
parent
d7e4de6850
commit
f7b19b0a86
|
|
@ -19,13 +19,6 @@ import kotlinx.coroutines.launch
|
|||
import java.util.ArrayList
|
||||
|
||||
open class PublicViewMode : BaseViewMode() {
|
||||
// fun hasLocalAcl() :Boolean{
|
||||
// val acls = Acl.getFile(Acl.CUSTOM_RULES).readLines()
|
||||
// Logger.d("sss ====> "+acls+"size:${acls.size}")
|
||||
// //默认的acl有3个 小于3个表示需要从服务器获取acl
|
||||
// return acls.size > 3
|
||||
// }
|
||||
|
||||
fun getHost(callback: AsyncCallback) {
|
||||
val rt =
|
||||
NetService.instances.createFreeBaseUrl("https://pubtofile.oss-cn-hongkong.aliyuncs.com/app_host/")
|
||||
|
|
@ -48,11 +41,9 @@ open class PublicViewMode : BaseViewMode() {
|
|||
rt.getBzyHostGithub()
|
||||
}
|
||||
}
|
||||
Log.e("data:::host::"+host)
|
||||
host.takeIf { it.isNotEmpty() }?.let {
|
||||
val decryptedHost = AESUtil.decrypt(it)
|
||||
val hostList = decryptedHost.split("+")
|
||||
Log.e("data:::decryptedHost::"+decryptedHost)
|
||||
if (hostList.isNotEmpty()) {
|
||||
//第一个为推荐域名
|
||||
MMKV.defaultMMKV().encode(BZYConstants.MMKV_KEY_FIRST_HOST, hostList[0])
|
||||
|
|
@ -60,7 +51,6 @@ open class PublicViewMode : BaseViewMode() {
|
|||
.encode(BZYConstants.MMKV_KEY_ROUTER_HOST, hostList.toSet())
|
||||
}
|
||||
}
|
||||
// Log.e("data", "22:$host")
|
||||
|
||||
callback.suc()
|
||||
} catch (e: Exception) {
|
||||
|
|
@ -91,10 +81,9 @@ open class PublicViewMode : BaseViewMode() {
|
|||
rt.getBzyHostGithub()
|
||||
}
|
||||
}
|
||||
host?.takeIf { it.isNotEmpty() }?.let {
|
||||
host.takeIf { it.isNotEmpty() }?.let {
|
||||
val decryptedHost = AESUtil.decrypt(it)
|
||||
val hostList = decryptedHost.split("+")
|
||||
Log.e("data:::decryptedHostaaaaa::"+decryptedHost)
|
||||
if (hostList.isNotEmpty()) {
|
||||
//第一个为推荐域名
|
||||
MMKV.defaultMMKV().encode(BZYConstants.MMKV_KEY_FIRST_HOST, hostList[0])
|
||||
|
|
@ -128,10 +117,8 @@ open class PublicViewMode : BaseViewMode() {
|
|||
rt.getBzyHostAWS()
|
||||
}
|
||||
}
|
||||
host?.takeIf { it.isNotEmpty() }?.let {
|
||||
host.takeIf { it.isNotEmpty() }?.let {
|
||||
val decryptedHost = AESUtil.decrypt(it)
|
||||
Log.e("data:::decryptedHostbbbbb::"+decryptedHost)
|
||||
|
||||
val hostList = decryptedHost.split("+")
|
||||
if (hostList.isNotEmpty()) {
|
||||
//第一个为推荐域名
|
||||
|
|
|
|||
Loading…
Reference in New Issue