Idris
Idris
查询时需要添加过滤条件,不然会查询到别人的数据。 ```golang // TaskDetail 待办详情 func TaskDetail(c *gin.Context) { var taskDetailDTO service.TaskDetailDTO claims, _ := utils.ParseToken(c.GetHeader(conf.TokenKey)) if err := c.ShouldBindUri(&taskDetailDTO); err == nil { res := taskDetailDTO.TaskDetail(claims.ID) c.JSON(http.StatusOK, res) }...
在Centos7下按照文档安装了PM2,Phantomjs,执行测试命令:$ phantomjs spider.js 'https://www.baidu.com/'也成功获取到响应内容,但是配置Nginx后利用浏览器手动设置user-agent访问会报错:加载失败。 查看PM2的log文件,在模拟爬虫访问的时候会报错,浏览器正常访问没问题。 log日志如下: 
The container's scrollIntoView fails until the function is initialized,I replaced scrollTo function to fix the feature
https://github.com/casbin/gorm-adapter/blob/3d3a3c755df913a52c7077694c4b33f175a37894/adapter.go#L719-L725 https://github.com/casbin/gorm-adapter/blob/3d3a3c755df913a52c7077694c4b33f175a37894/adapter.go#L447-L464 https://github.com/casbin/gorm-adapter/blob/3d3a3c755df913a52c7077694c4b33f175a37894/adapter.go#L393-L401 Creating a tx without copying other key information causes truncate table to fail to find the table name。