fix: fix temperature

main
zggsong 2 years ago
parent 9526f77c0e
commit e31809deb4

@ -182,7 +182,7 @@ type EpidemicQuestLVI struct {
IsOutSidePerson bool `json:"IsOutSidePerson"` IsOutSidePerson bool `json:"IsOutSidePerson"`
IsNewPerson bool `json:"IsNewPerson"` IsNewPerson bool `json:"IsNewPerson"`
VaccinType string `json:"VaccinType"` VaccinType string `json:"VaccinType"`
Temperature string `json:"Temperature"` Temperature float64 `json:"Temperature"`
IsGtPerson string `json:"IsGtPerson"` IsGtPerson string `json:"IsGtPerson"`
GtAddress string `json:"GtAddress"` GtAddress string `json:"GtAddress"`
GtShenzhenTime string `json:"GtShenzhenTime"` GtShenzhenTime string `json:"GtShenzhenTime"`

@ -205,7 +205,7 @@ func EpidemicRegistration(auth, user string, images []string, data model.Epidemi
postData.Add("noVaccineReason", data.NoVaccineReason) postData.Add("noVaccineReason", data.NoVaccineReason)
postData.Add("healthCodeColor", data.HealthCodeColor) postData.Add("healthCodeColor", data.HealthCodeColor)
postData.Add("vaccinType", data.VaccinType) postData.Add("vaccinType", data.VaccinType)
postData.Add("temperature", data.Temperature) postData.Add("temperature", strconv.FormatFloat(data.Temperature, 'f', 1, 64))
postData.Add("isGtPerson", data.IsGtPerson) postData.Add("isGtPerson", data.IsGtPerson)
postData.Add("gtAddress", data.GtAddress) postData.Add("gtAddress", data.GtAddress)
postData.Add("gtShenzhenTime", data.GtShenzhenTime) postData.Add("gtShenzhenTime", data.GtShenzhenTime)

Loading…
Cancel
Save