Commit 8cbc11a0 authored by szh's avatar szh

interface to string

parent f98712df
......@@ -646,7 +646,7 @@ func UploadInfo(tick * time.Ticker) {
}
//上传基本信息
func uploadInfo() error {
params:=make(map[string]interface{})
params:=make(map[string]string)
params["version"] = GetVersion()
var pai pai_service.Pai
err := pai.SetPai()
......@@ -654,8 +654,9 @@ func uploadInfo() error {
tlog.Error("SetPai","err",err)
return err
}
jpai,_ := json.Marshal(pai)
params["addr"] = pai.Serial
params["info"] = pai
params["info"] = string(jpai)
data,err := json.Marshal(params)
client := &http.Client{}
......
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