[6.0.0] code opt and update sdk of aicloud , map , plus kotlin union
This commit is contained in:
@@ -589,8 +589,8 @@ object MoGoChatFacade: IMoGoChatFacade {
|
||||
it.cardIdAge = mySelf.get().age
|
||||
it.cardIdSex = mySelf.get().sex
|
||||
it.cityName = mySelf.get().city
|
||||
it.lat = location?.latitude ?: 0.0
|
||||
it.lon = location?.longitude ?: 0.0
|
||||
it.lat = location.latitude
|
||||
it.lon = location.longitude
|
||||
})
|
||||
if (response.code != 0 && response.code != 200) {
|
||||
send(AnswerState.Error(AnswerState.CODE_ANSWER_API_REQ_FAIL, "[Answer] - ${response.msg}", mutableMapOf<String, String>().also {
|
||||
@@ -818,8 +818,8 @@ object MoGoChatFacade: IMoGoChatFacade {
|
||||
it.nickName = user.name
|
||||
it.headImgUrl = user.icon
|
||||
it.carInfo = user.brand
|
||||
it.lat = location?.latitude ?: 0.0
|
||||
it.lon = location?.longitude ?: 0.0
|
||||
it.lat = location.latitude
|
||||
it.lon = location.longitude
|
||||
})
|
||||
val code = response.code
|
||||
if (code != 0 && code != 200) {
|
||||
@@ -966,8 +966,8 @@ object MoGoChatFacade: IMoGoChatFacade {
|
||||
it.cardIdAge = mySelf.get().age
|
||||
it.cardIdSex = mySelf.get().sex
|
||||
it.cityName = mySelf.get().city
|
||||
it.lat = location?.latitude ?: 0.0
|
||||
it.lon = location?.longitude ?: 0.0
|
||||
it.lat = location.latitude
|
||||
it.lon = location.longitude
|
||||
})
|
||||
if (response.code != 0 && response.code != 200) {
|
||||
send(JoinState.Error(AnswerState.CODE_ANSWER_API_REQ_FAIL, "[JoinTeam] - ${response.msg}", mutableMapOf<String, String>().also {
|
||||
|
||||
@@ -70,10 +70,8 @@ internal class ChatServiceModel {
|
||||
val sn = MoGoAiCloudClientConfig.getInstance().sn
|
||||
|
||||
val location = CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
|
||||
if (location != null) {
|
||||
params.lon = location.longitude
|
||||
params.lat = location.latitude
|
||||
}
|
||||
params.lon = location.longitude
|
||||
params.lat = location.latitude
|
||||
Logger.d(ChatConsts.TAG, "connectStatusParam:$params")
|
||||
map["sn"] = MoGoAiCloudClientConfig.getInstance().sn
|
||||
map["data"] = Gson().toJson(params)
|
||||
|
||||
Reference in New Issue
Block a user