zjxpcyc 6 years ago
parent
commit
7b1205015c
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      controllers/websocket.go
  2. 1
    1
      models/sys.go

+ 2
- 0
controllers/websocket.go View File

31
 		c.ResponseError(errors.New("Websocket 连接失败"))
31
 		c.ResponseError(errors.New("Websocket 连接失败"))
32
 	}
32
 	}
33
 
33
 
34
+	c.destroyContext(true)
35
+
34
 	client.Run()
36
 	client.Run()
35
 }
37
 }

+ 1
- 1
models/sys.go View File

180
 
180
 
181
 			if _, err := DBEngine.Cols("status").
181
 			if _, err := DBEngine.Cols("status").
182
 				Where("token=?", token).
182
 				Where("token=?", token).
183
-				Or("batch_no in ('" + strings.Join(batchNo, "','") + "'").
183
+				Or("batch_no in ('" + strings.Join(batchNo, "','") + "')").
184
 				Update(&tk); err != nil {
184
 				Update(&tk); err != nil {
185
 				return err
185
 				return err
186
 			}
186
 			}