Jianming Guo

Results 16 comments of Jianming Guo

Just wrote a long test, followed gin-jwt github page doc, it works well as it stated. Although I couldn't recognize any source code revealing how exactly authenticator works. ``` adminRoutes...

@alcmoraes, could you be more detailed ? how to distinguish normal user, admin user, guest user? ``` usr, _ := c.Get("id") fmt.Println(usr.(*models.User).UserName) c.Next() return ``` Could you explain these lines...

Currently I hacked in the gin-jwt source code, like this, to by pass the authenticator function for normal users, so I achieved 3 roles, normal user, admin, and guest without...

Second this, need an example use this with your gin-jwt

I missed that in doc, thanks. But I still have a noob question about this. In such my own LoginResponse function, if I do redirect, why does it just append...

又是自己解决了,原来是现在QQ登陆已经不再用UnionID了,全部换用OpenID应该就解决

解决了,用nginx配置。 ``` location /bbsupload/ { #注意alias用在结尾和上面路径不同,root用在结尾和上面路径相同情况 #注意路径结尾斜杠 alias /data/htdocs/bbs-go-upload/; } ```

``` PShape t = createShape(ELLIPSE, 0,0,100,100); shape(t, 0,0,10,10); ```` This suppose to draw a smaller circle at the corner, but it is drawing nothing now. It is either a bug...

经过测试目前zrender的Image不支持svg文件链接,也不支持data URL