Skip to content

Commit

Permalink
feat(location): 加入amap签名校验, 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Feb 5, 2024
1 parent 6cc2cc2 commit d321233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin-location/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = "me.leon.toolsfx"
version = "1.3.0"
version = "1.3.1"

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ enum class LocationServiceType(val type: String) : ILocationService {
val queries = "address=$raw&key=${KeyProvider.KEY_AMAP}&output=json"
return ("https://restapi.amap.com/v3/geocode/geo?" +
"$address&key=${KeyProvider.KEY_AMAP}&output=json" +
"&sig=${(queries + "57b0452167c85d33217472e4e53028ec").hash("md5")}")
"&sig=${(queries + "c7753ad6eef2064d6d2aa35a927be951").hash("md5")}")
.also { println(it) }
.readFromNet()
.also { println(it) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import me.leon.ext.fx.*
import tornadofx.*

class LocationView : PluginFragment("LocationView") {
override val version = "v1.3.0"
override val date: String = "2023-12-14"
override val version = "v1.3.1"
override val date: String = "2024-02-05"
override val author = "Leon406"
override val description = "经纬度相关"

init {
println("Plugin Info:$description $version $date $author ")
}

lateinit var taInput: TextArea
lateinit var taOutput: TextArea
private lateinit var taInput: TextArea
private lateinit var taOutput: TextArea
private val controller: LocationController by inject()
private var locationServiceType: LocationServiceType = LocationServiceType.WGS2GCJ
private val inputText: String
Expand Down

0 comments on commit d321233

Please sign in to comment.