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

放行权限有点问题,非admin账号请求上传token会失败,后台设置会报错。最后就是七牛三方扩展 #6

Open
ieras opened this issue Jan 1, 2023 · 1 comment

Comments

@ieras
Copy link

ieras commented Jan 1, 2023

1.放行权限,建议使用插件标准写法,如下

//vendor/weiwait/dcat-vue/src/DcatVueServiceProvider.php 添加放行路由配置
    protected $exceptRoutes = [
        'permission' => ['weiwait*'],
        'auth' => ['weiwait*']
    ];

2.后台扩展-设置报错(上次我提pr你放弃合并那个)

//vendor/weiwait/dcat-vue/src/Setting.php 增加 use
use Weiwait\DcatVue\Models\FilesystemConfig;

3.Dcat-Admin 文档推荐用 zgldh/qiniu-laravel-storage(所以我觉得大部分人会加载这个扩展,种种原因[比如别地方使用了,估计不好彻底放弃]),所以建议咱们也用这个扩展。

@weiwait
Copy link
Owner

weiwait commented Jan 2, 2023

1.放行权限,建议使用插件标准写法,如下

//vendor/weiwait/dcat-vue/src/DcatVueServiceProvider.php 添加放行路由配置
    protected $exceptRoutes = [
        'permission' => ['weiwait*'],
        'auth' => ['weiwait*']
    ];

2.后台扩展-设置报错(上次我提pr你放弃合并那个)

//vendor/weiwait/dcat-vue/src/Setting.php 增加 use
use Weiwait\DcatVue\Models\FilesystemConfig;

3.Dcat-Admin 文档推荐用 zgldh/qiniu-laravel-storage(所以我觉得大部分人会加载这个扩展,种种原因[比如别地方使用了,估计不好彻底放弃]),所以建议咱们也用这个扩展。

更新了,扩展那个就算了,不想改,你自己切换吧

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

2 participants