Closed Aunero closed 1 year ago
易支付回调return报错500
檢查是否正確執行DB遷移。
订单管理显示待支付
檢查 xcat Cron 定時任務是否正確配置。
易支付回调return报错500
檢查是否正確執行DB遷移。
订单管理显示待支付
檢查 xcat Cron 定時任務是否正確配置。
数据库已更新到最新版本 2023030500, 但return还是会报错500 显示待支付的问题已经配置xcat Cron好了
開 debug 看看回調的報錯内容。
開 debug 看看回調的報錯内容。
Warning: Undefined array key "money" in /www/wwwroot/website/src/Services/Gateway/Epay.php on line 142 Slim Application Error The application could not run because of the following error:
Details Type: TypeError Code: 0 Message: App\Services\Payment::returnHTML(): Return value must be of type string, Slim\Http\Response returned File: /www/wwwroot/website/src/Services/Payment.php Line: 70 Trace
money参数我看到回调url上是有的
src/Services/Payment.php 第 64 行
public static function returnHTML($request, $response, $args): string
改成
public static function returnHTML($request, $response, $args)
試試。
src/Services/Payment.php 第 64 行
public static function returnHTML($request, $response, $args): string
改成public static function returnHTML($request, $response, $args)
試試。
可以了,谢谢大佬
Environment 环境
OS: centos 7.9 PHP version: php8.1 DB version: mariaDB 10.7 Commit: #1815
Bug Info
易支付回调return报错500, 新商店账单管理显示已支付(支付网关), 订单管理显示待支付