func InitConnect(identify string) (string, bool) { user := models.User{} user.Identify = identify err := user.Read("Identify") if err != nil { err = user.Insert() if err != nil { fmt.Println("connect创建用户失败-" + err.Error()) } } id := user.Id password := user.Password if len(password) == 0 { return strconv.Itoa(id), false } else { return strconv.Itoa(id), true } }