支付宝沙箱配置完成后报Missing Alipay Config -- [app_public_cert_path]

按照文档配置沙箱环境之后访问临时路由报如下错误,文章内没有app_public_cert_path相关参数

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
讨论数量: 7

根据本教程github中composer配置文件显示,扩展包为2.10.2,但现在实际安装的都是3.0,扩展包的配置参数都不一样了肯定不行,根据以下命令卸载扩展包再安装指定版本的就行了 composer remove yansongda/pay composer require yansongda/pay 2.10.2

3年前 评论
AKA-TanNaWen (楼主) 3年前
xiayimiaozhongjianni 3年前
nbutluo 3年前

Problem 1 - Root composer.json requires yansongda/pay 2.10.2 -> satisfiable by yansongda/pay[v2.10.2]. - yansongda/pay v2.10.2 requires symfony/http-foundation ^4.0 || ^5.0.7 -> found symfony/http-foundation[v4.0.0, ..., v4.4.30, v5.0.7, ..., v5.3.7] but the package is fixed to v3.4.47 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command

解决方法 composer require symfony/event-dispatcher 5.4.x-dev

composer require yansongda/pay=2.10.2

3年前 评论
狒狒达人 2年前
cold777 2年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!