Commit 385cf171 authored by szh's avatar szh

添加上传信息

parent cb99f86a
...@@ -644,6 +644,16 @@ func UploadInfo(tick * time.Ticker) { ...@@ -644,6 +644,16 @@ func UploadInfo(tick * time.Ticker) {
} }
} }
} }
//上传基本信息
func uploadInfo() error {
var pai pai_service.Pai
err := pai.SetPai()
if err != nil {
tlog.Error("SetPai","err",err)
return err
}
return nil
}
func uploadVersion() error { func uploadVersion() error {
client := &http.Client{} client := &http.Client{}
......
...@@ -36,6 +36,11 @@ type ReqUpdatePai struct { ...@@ -36,6 +36,11 @@ type ReqUpdatePai struct {
Version string `json:"version" binding:"required"` Version string `json:"version" binding:"required"`
} }
func (p *Pai) SetPai() error {
return nil
}
func (p *Pai) GetConfig() bool { func (p *Pai) GetConfig() bool {
if pai_serial != "" { if pai_serial != "" {
......
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