Browse Source

修复bug

lijian 6 years ago
parent
commit
63a34295d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/fileaccess/fileaccess.go

+ 1 - 1
services/fileaccess/fileaccess.go

@@ -84,7 +84,7 @@ func (f *FileAccess) saveToRedis(tmp *tempFile) error {
 		server.Log.Errorf("saveToRedis error :%v", err)
 		return err
 	}
-	bytes, err := json.Marshal(tmp)
+	bytes, err := json.Marshal(&tmp)
 	if err != nil {
 		server.Log.Errorf("json marshal error :%v", err)
 		return err