Commit 9daab299 authored by mengcuiguang2's avatar mengcuiguang2

添加升级接口调用

parent 08e499bb
......@@ -47,7 +47,7 @@ class ItemEnterDestinationAdapter(
}
list?.let { it ->
holder.binding.tvName.text = it[position].area
holder.binding.tvNumberPeople.text = "人数"
holder.binding.tvNumberPeople.text = "${it[position].activeNum}W人去过"
it[position].url?.let { url ->
KLog.e("zsf__","==========${it.indices}")
for (index in 0..2) {
......
......@@ -5,6 +5,7 @@ import java.io.Serializable
class VreperienceBean: Serializable {
val data: List<Data>?=null
inner class Data(
val activeNum: Double,
val area: String,
val url: List<String>
)
......
......@@ -81,7 +81,11 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
}
}
override fun onResume() {
super.onResume()
viewModel.checkUpgrade()
}
var oldTime: Long = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment