Эх сурвалжийг харах

refactor(更新) :
- 修改版本号为1.0.1
- 修改getMapInfo方法,从SP中获取mapId

周文健 2 сар өмнө
parent
commit
b5985aa356

+ 1 - 1
app/build.gradle

@@ -19,7 +19,7 @@ android {
         minSdk 24
         minSdk 24
         targetSdk 34
         targetSdk 34
         versionCode 1
         versionCode 1
-        versionName "1.0.0"
+        versionName "1.0.1"
 
 
         multiDexEnabled true
         multiDexEnabled true
 
 

+ 5 - 3
app/src/main/java/com/grkj/iscs_mars/view/presenter/WorkshopPresenter.kt

@@ -21,9 +21,11 @@ class WorkshopPresenter : BasePresenter<IWorkshopView>() {
     }
     }
 
 
     fun getMapInfo(callBack: (MapInfoRespVO?) -> Unit) {
     fun getMapInfo(callBack: (MapInfoRespVO?) -> Unit) {
-        NetApi.getMapInfo(1) {
-            Executor.runOnMain {
-                callBack(it)
+        SPUtils.getAttributeValue(mContext!!, Constants.MAP_PERMIT_KEY)?.let {
+            NetApi.getMapInfo(it.toLong()) {
+                Executor.runOnMain {
+                    callBack(it)
+                }
             }
             }
         }
         }
     }
     }