zjxpcyc 6 年之前
父節點
當前提交
598f1644fa
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    1
      conf/log.conf
  2. 1
    0
      controllers/user/user.go

+ 1
- 1
conf/log.conf 查看文件

@@ -1,4 +1,4 @@
1 1
 [common]
2
-filename="E:\\GoProject\\src\\spaceofcheng\\services\\log\\common.log"
2
+filename="E:\\GoProjects\\src\\spaceofcheng\\services\\log\\common.log"
3 3
 # log level "emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"
4 4
 level="debug"

+ 1
- 0
controllers/user/user.go 查看文件

@@ -209,6 +209,7 @@ func (c *UserController) SignOut() {
209 209
 	user := c.Context.Get("user").(model.SysUser)
210 210
 	c.Context.Set("user", nil)
211 211
 	c.SetTokenExipre(user.UserId)
212
+	c.ResponseJSON("ok")
212 213
 }
213 214
 
214 215
 // GetEnvVars 获取当前用户相关