Commit 06c541ce authored by wanglei's avatar wanglei

...

parent 9eeee1fb
...@@ -112,15 +112,17 @@ object LocationShareListUtils { ...@@ -112,15 +112,17 @@ object LocationShareListUtils {
.put("bp", bp) .put("bp", bp)
.toString() .toString()
val paramJson = AESHelper.encrypt(body) val paramJson = AESHelper.encrypt(body)
LogEx.logDebug(TAG, "paramJson=$paramJson") LogEx.logDebug(TAG, "deleteShare paramJson=$paramJson")
runCatching { runCatching {
LogEx.logDebug(TAG, "deleteShare device=$device")
LogEx.logDebug(TAG, "deleteShare deleteUrl=$deleteUrl")
val result = ReportUtils.doPost(deleteUrl, HashMap(), paramJson) val result = ReportUtils.doPost(deleteUrl, HashMap(), paramJson)
LogEx.logDebug(TAG, "result=$result") LogEx.logDebug(TAG, "deleteShare result=$result")
val responseData = LocationLoginUtils.extractData(result) val responseData = LocationLoginUtils.extractData(result)
LogEx.logDebug(TAG, "responseData=$responseData") LogEx.logDebug(TAG, "deleteShare responseData=$responseData")
if (responseData != null) { if (responseData != null) {
val decryptedData = AESHelper.decrypt(responseData) val decryptedData = AESHelper.decrypt(responseData)
LogEx.logDebug(TAG, "decryptedData=$decryptedData") LogEx.logDebug(TAG, "deleteShare decryptedData=$decryptedData")
callBacK.invoke(decryptedData.toBoolean()) callBacK.invoke(decryptedData.toBoolean())
} }
} }
......
...@@ -145,7 +145,6 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() { ...@@ -145,7 +145,6 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
} }
binding.tvShare.setOnClickListener { binding.tvShare.setOnClickListener {
val code = binding.editCode.text.toString() val code = binding.editCode.text.toString()
if (code.isEmpty()) { if (code.isEmpty()) {
toast("code is empty", true) toast("code is empty", true)
...@@ -175,7 +174,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() { ...@@ -175,7 +174,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
} }
} }
fun hideKeyBoard() { private fun hideKeyBoard() {
val imm = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager val imm = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
if (currentFocus != null) { if (currentFocus != null) {
imm.hideSoftInputFromWindow(currentFocus!!.windowToken, 0) imm.hideSoftInputFromWindow(currentFocus!!.windowToken, 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