Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分享功能似乎不正常? #3

Open
Cicini opened this issue Mar 5, 2021 · 1 comment
Open

分享功能似乎不正常? #3

Cicini opened this issue Mar 5, 2021 · 1 comment

Comments

@Cicini
Copy link

Cicini commented Mar 5, 2021

未登录时分享链接打开会自动跳转到登录页
使用的程序版本: Release v1.0 (v1.0-6-g3f88bdf_linux_amd64和v1.0-8-gc146e66_linux_arm64)

@Cicini
Copy link
Author

Cicini commented Mar 13, 2021

登陆后打开分享链接报错


2021/03/13 10:45:38 [Recovery] 2021/03/13 - 10:45:38 panic recovered:
interface conversion: interface {} is *teambition.UserInfo, not teambition.UserInfo
/usr/local/go/src/runtime/iface.go:261 (0x4139ee)
        panicdottypeE: panic(&TypeAssertionError{iface, have, want, ""})
/root/teambitionindex/app/service/share/share.go:99 (0xa400c4)
        (*ShareViewService).View: u := user.(teambition.UserInfo)
/root/teambitionindex/app/controllers/ShareController.go:46 (0xa488a4)
        ShareView: res := service.View(c)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa49f6b)
        (*Context).Next: c.handlers[c.index](c)
/root/teambitionindex/app/middleware/frontend.go:43 (0xa49f52)
        FrontendFileHandler.func2: c.Next()
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa13cf0)
        (*Context).Next: c.handlers[c.index](c)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/recovery.go:83 (0xa13cd7)
        RecoveryWithWriter.func1: c.Next()
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa12d73)
        (*Context).Next: c.handlers[c.index](c)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/logger.go:241 (0xa12d32)
        LoggerWithConfig.func1: c.Next()
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa09eaf)
        (*Context).Next: c.handlers[c.index](c)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 (0xa09e96)
        (*Engine).handleHTTPRequest: c.Next()
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 (0xa0994c)
        (*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/go/src/net/http/server.go:2887 (0x6d6842)
        serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/go/src/net/http/server.go:1952 (0x6d1c6c)
        (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/go/src/runtime/asm_amd64.s:1371 (0x4752c0)
        goexit: BYTE    $0x90   // NOP

[GIN] 2021/03/13 - 10:45:38 | 500 |    7.311847ms |       127.0.0.1 | GET      "/api/share/5b7y0fP1nX"

go version go1.16.2 linux/amd64
debian 10 64x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant