feat: add background to conn args when client ws recon

This commit is contained in:
Gordon
2023-06-11 15:32:53 +08:00
parent 3d119d4632
commit e04f633fab
4 changed files with 12 additions and 2 deletions
+8
View File
@@ -91,3 +91,11 @@ func (c *UserConnContext) GetPlatformID() string {
func (c *UserConnContext) GetOperationID() string {
return c.Req.URL.Query().Get(OperationID)
}
func (c *UserConnContext) GetBackground() bool {
b, err := strconv.ParseBool(c.Req.URL.Query().Get(BackgroundStatus))
if err != nil {
return false
} else {
return b
}
}