fastapi-mysql-generator icon indicating copy to clipboard operation
fastapi-mysql-generator copied to clipboard

下载代码 运行起来之后 有2个错误

Open eluotao opened this issue 3 years ago • 1 comments

1、mysql 端口设置 并没有调用 2、./common/sys_casbin.py 26 行 提示参数数量不对 删除 True 就可以了

  File "./common/sys_casbin.py", line 26, in get_casbin
    e = casbin.Enforcer(settings.CASBIN_MODEL_PATH, adapter, True)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given

3、除了 admin/auth/login/access-token /admin/auth/user/info 其他接口 管理员访问都提示权限不足

我现在都走不下去了

eluotao avatar Jun 12 '21 05:06 eluotao

实在不行,你可以把casbin这个模块给去掉。上次有位老哥给我提过 issue #17 ,可能是pycasbin库有更新,我太懒了,还没改😂。

wxy2077 avatar Jun 15 '21 00:06 wxy2077