优化
This commit is contained in:
@@ -183,11 +183,11 @@ class HomeActivity : BaseActivity() {
|
|||||||
|
|
||||||
// viewModel.getAccessToken(App.deviceId)
|
// viewModel.getAccessToken(App.deviceId)
|
||||||
|
|
||||||
// viewModel.getShelfList(deviceId = App.deviceId)
|
viewModel.getShelfList(deviceId = App.deviceId)
|
||||||
|
|
||||||
binding.root.postDelayed({
|
// binding.root.postDelayed({
|
||||||
loadTestData()
|
// loadTestData()
|
||||||
}, 30*1000)
|
// }, 30*1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun loadTestData() {
|
private fun loadTestData() {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package com.shuwei.intelligent.shelves.net
|
|||||||
import com.shuwei.intelligent.shelves.App
|
import com.shuwei.intelligent.shelves.App
|
||||||
|
|
||||||
object UrlConfig {
|
object UrlConfig {
|
||||||
const val DEVICE_BASE_URL = "http://device.shuziweidao.com:8889"
|
// const val DEVICE_BASE_URL = "http://device.shuziweidao.com:8889"
|
||||||
// /**
|
// /**
|
||||||
// * device获取token
|
// * device获取token
|
||||||
// */
|
// */
|
||||||
@@ -13,9 +13,10 @@ object UrlConfig {
|
|||||||
// */
|
// */
|
||||||
// const val DEVICE_CONFIG = "${DEVICE_BASE_URL}/equipment/stEquipment/queryByEquipmentCode"
|
// const val DEVICE_CONFIG = "${DEVICE_BASE_URL}/equipment/stEquipment/queryByEquipmentCode"
|
||||||
|
|
||||||
const val BASE_URL = "http://dev.yixiong-tech.com:8081"
|
const val BASE_URL = "https://dev.yixiong-tech.com:8081"
|
||||||
// const val BASE_URL = "https://yyjk.shuziweidao.com/gateway"
|
// const val BASE_URL = "https://yyjk.shuziweidao.com/gateway"
|
||||||
// const val BASE_URL = "http://192.168.1.201:14801"
|
// const val BASE_URL = "http://192.168.1.201:14801"
|
||||||
|
const val DEVICE_BASE_URL = BASE_URL
|
||||||
|
|
||||||
var GET_ACCESS_TOKEN = "${App.configUrl}/restaurant/equipment/stEquipment/getEquipmentToken"
|
var GET_ACCESS_TOKEN = "${App.configUrl}/restaurant/equipment/stEquipment/getEquipmentToken"
|
||||||
var GET_SHELF_LIST =
|
var GET_SHELF_LIST =
|
||||||
|
|||||||
Reference in New Issue
Block a user