This commit is contained in:
2025-09-11 16:06:17 +08:00
parent a3690e7ef0
commit 3ddf9a2663
2 changed files with 3 additions and 1 deletions
@@ -13,7 +13,7 @@ object UrlConfig {
*/
const val DEVICE_CONFIG = "${DEVICE_BASE_URL}/equipment/stEquipment/queryByEquipmentCode"
// const val BASE_URL = "http://vip.shuziweidao.com/shuwei-zhct"
const val BASE_URL = "http://vip.shuziweidao.com/shuwei-zhct"
// const val DISH_DETAIL = "$BASE_URL/scales/goodsUseList?foodId={foodId}&foodWeight={foodWeight}"
// const val DISH_LIST = "$BASE_URL/scales/getRestInfoFoods?eaId=99&type=0&foodName"
@@ -50,6 +50,8 @@ class InitActivity : BaseActivity() {
Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID)
BaseApp.deviceId = androidId
SpTool.put(SpTool.DEVICE_ID, androidId)
BaseApp.configUrl = UrlConfig.BASE_URL
BaseApp.canteenId = "0"
// TODO: 以上保存deviceId用于临时使用,后续改为下面注释方式
// var deviceId = AppUtil.getUDID(this)
// Log.d(TAG, "onCreate: deviceId=$deviceId")