Commit 9587e914 authored by wanglei's avatar wanglei

...

parent 7abc49eb
...@@ -53,6 +53,7 @@ dependencies { ...@@ -53,6 +53,7 @@ dependencies {
implementation("io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4") implementation("io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4")
implementation("io.github.youth5201314:banner:2.2.3") implementation("io.github.youth5201314:banner:2.2.3")
implementation("de.hdodenhof:circleimageview:3.1.0") implementation("de.hdodenhof:circleimageview:3.1.0")
implementation("io.supercharge:shimmerlayout:2.1.0")
//google地图 //google地图
implementation(libs.play.services.maps) implementation(libs.play.services.maps)
......
...@@ -69,6 +69,7 @@ object LocationLoginUtils { ...@@ -69,6 +69,7 @@ object LocationLoginUtils {
val paramJson = AESHelper.encrypt(body) val paramJson = AESHelper.encrypt(body)
LogEx.logDebug(TAG, "url=$url") LogEx.logDebug(TAG, "url=$url")
runCatching {
val result = doPost(url, HashMap(), paramJson) val result = doPost(url, HashMap(), paramJson)
LogEx.logDebug(TAG, "result=$result") LogEx.logDebug(TAG, "result=$result")
val responseData = extractData(result) val responseData = extractData(result)
...@@ -78,6 +79,7 @@ object LocationLoginUtils { ...@@ -78,6 +79,7 @@ object LocationLoginUtils {
LogEx.logDebug(TAG, "decryptedData=$decryptedData") LogEx.logDebug(TAG, "decryptedData=$decryptedData")
parseLoginData(decryptedData) parseLoginData(decryptedData)
} }
}
}.start() }.start()
} }
......
...@@ -58,10 +58,11 @@ object LocationPositionUtils { ...@@ -58,10 +58,11 @@ object LocationPositionUtils {
.toString() .toString()
val paramJson = AESHelper.encrypt(body) val paramJson = AESHelper.encrypt(body)
runCatching {
LogEx.logDebug(TAG, "uploadUrl=${uploadUrl}") LogEx.logDebug(TAG, "uploadUrl=${uploadUrl}")
val result = ReportUtils.doPost(uploadUrl, HashMap(), paramJson) val result = ReportUtils.doPost(uploadUrl, HashMap(), paramJson)
LogEx.logDebug(TAG, "result=$result") LogEx.logDebug(TAG, "result=$result")
}
}.start() }.start()
} }
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ import org.json.JSONObject ...@@ -16,7 +16,7 @@ import org.json.JSONObject
*/ */
object LocationShareListUtils { object LocationShareListUtils {
private val TAG = "LocationListUtils" private val TAG = "LocationShareListUtils"
/** /**
* 分享关系列表 * 分享关系列表
...@@ -54,12 +54,17 @@ object LocationShareListUtils { ...@@ -54,12 +54,17 @@ object LocationShareListUtils {
.toString() .toString()
val paramJson = AESHelper.encrypt(body) val paramJson = AESHelper.encrypt(body)
runCatching {
val result = ReportUtils.doPost(url, HashMap(), paramJson) val result = ReportUtils.doPost(url, HashMap(), paramJson)
LogEx.logDebug(TAG, "result=$result")
val responseData = LocationLoginUtils.extractData(result) val responseData = LocationLoginUtils.extractData(result)
LogEx.logDebug(TAG, "responseData=$responseData")
if (responseData != null) { if (responseData != null) {
val decryptedData = AESHelper.decrypt(responseData) val decryptedData = AESHelper.decrypt(responseData)
LogEx.logDebug(TAG, "decryptedData=$decryptedData")
parseShareListData(decryptedData, viewerListCallBack, viewingListCallBack) parseShareListData(decryptedData, viewerListCallBack, viewingListCallBack)
} }
}
}.start() }.start()
} }
......
...@@ -61,6 +61,7 @@ object LocationShareUtils { ...@@ -61,6 +61,7 @@ object LocationShareUtils {
.toString() .toString()
val paramJson = AESHelper.encrypt(body) val paramJson = AESHelper.encrypt(body)
runCatching {
val result = ReportUtils.doPost(url, HashMap(), paramJson) val result = ReportUtils.doPost(url, HashMap(), paramJson)
val responseData = extractData(result) val responseData = extractData(result)
if (responseData != null) { if (responseData != null) {
...@@ -69,6 +70,7 @@ object LocationShareUtils { ...@@ -69,6 +70,7 @@ object LocationShareUtils {
} else { } else {
callBack.invoke(0) callBack.invoke(0)
} }
}
}.start() }.start()
} }
} }
\ No newline at end of file
...@@ -29,6 +29,8 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() { ...@@ -29,6 +29,8 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
BarUtils.setStatusBarColor(this, Color.WHITE) BarUtils.setStatusBarColor(this, Color.WHITE)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight()) binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
binding.shimmerLayout.startShimmerAnimation()
initShareData() initShareData()
} }
......
...@@ -44,13 +44,21 @@ ...@@ -44,13 +44,21 @@
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@id/fl_fanhui"> app:layout_constraintTop_toBottomOf="@id/fl_fanhui">
<ImageView <io.supercharge.shimmerlayout.ShimmerLayout
android:layout_width="match_parent" android:id="@+id/shimmerLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
app:shimmer_animation_duration="2000">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@mipmap/lan_weizhi" android:src="@mipmap/lan_weizhi"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
</io.supercharge.shimmerlayout.ShimmerLayout>
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
......
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