Browse Source

注销失败处理

WH01243 2 years ago
parent
commit
c31383dd21
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/jfw/modules/app/src/app/front/logoffuser.go

+ 2 - 2
src/jfw/modules/app/src/app/front/logoffuser.go

@@ -43,7 +43,7 @@ func (l *Logoffuser) Out() {
 	if !R.CheckReqParam(l.ResponseWriter, l.Request, "cause") {
 		return
 	}
-	user_id := l.GetSession("userId").(string)
+	user_id := l.GetSession("mgoUserId").(string)
 	status := 0
 	msg := ""
 	//获取用户注销原因
@@ -116,7 +116,7 @@ func UserIsOk(userid string) (int, string) {
 func LogOffAppUser(user_id, cause string) bool {
 	delete_data := map[string]interface{}{}
 	delete_data["s_cause"] = cause //注销原因
-	user := utils.Compatible.Select(user_id, "")
+	user, _ := mongodb.FindById("user", user_id, "")
 	delete_data["o_user"] = *user
 	delete_data["l_createtime"] = time.Now().Unix()
 	//存库