497 Star 6.2K Fork 1.7K

GVPanji-plus / AJ-Captcha

 / 详情

php版本的method段配置错误

待办的
创建于  
2021-08-09 11:26

在配置文件service/php/src/config.php中自定义缓存可用方法中的配置为

'method' => [
            //遵守PSR-16规范不需要设置此项目(tp6, laravel,hyperf)。如tp5就不支持(delete => rm),
            'get' => 'get', //获取
            'set' => 'set', //设置
            'delete' => 'delete',//删除
            'has' => 'has' //key是否存在
        ]

但实际上在fastknife\ajcaptcha\src\Domain\Logic\Cache.php中其实是对配置中的methods字段进行合并,所以需要修改
method为methods才可以正常使用

评论 (1)

CGI.NET 创建了任务
CGI.NET 关联仓库设置为anji-plus/AJ-Captcha
展开全部操作日志

:+1: 心细, config.php已经向外暴露出去,更新会用户不太友好。 所以把内部的 methods 改成 method 会更好。

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
696866 fastknife 1626426510
JavaScript
1
https://gitee.com/anji-plus/captcha.git
git@gitee.com:anji-plus/captcha.git
anji-plus
captcha
AJ-Captcha

搜索帮助