修改事件id数据类型

This commit is contained in:
tongchenfei
2020-08-18 09:48:55 +08:00
parent 7bdd0d5525
commit 21cbaeaeb1
4 changed files with 10 additions and 10 deletions

View File

@@ -89,7 +89,7 @@ class MainService : Service() {
params?.let {
shareType = it.eventType
fromType = it.fromType
mainInfoId = it.parentId.toLong()
mainInfoId = it.parentId
mLongitude = it.lon
mLatitude = it.lat
Log.d(TAG, "onStartCommand shareType = $shareType --fromType = $fromType --mainInfoId = $mainInfoId -- mLongitude = $mLongitude --mLatitude = $mLatitude --it.duration = ${it.duration} ")

View File

@@ -4,12 +4,12 @@ import android.os.Parcel
import android.os.Parcelable
import com.mogo.map.MogoLatLng
class UploadParams(val eventType: String, val fromType: String, val duration: Int, val parentId: String, val lat: Double, val lon: Double) : Parcelable {
class UploadParams(val eventType: String, val fromType: String, val duration: Int, val parentId: Long, val lat: Double, val lon: Double) : Parcelable {
constructor(parcel: Parcel) : this(
parcel.readString()!!,
parcel.readString()!!,
parcel.readInt(),
parcel.readString()!!,
parcel.readLong(),
parcel.readDouble(),
parcel.readDouble()
)
@@ -18,7 +18,7 @@ class UploadParams(val eventType: String, val fromType: String, val duration: In
parcel.writeString(eventType)
parcel.writeString(fromType)
parcel.writeInt(duration)
parcel.writeString(parentId)
parcel.writeLong(parentId)
parcel.writeDouble(lat)
parcel.writeDouble(lon)
}