2.3.4版本,appserver端/payment/paypal/standard/start,没有去除Fecshop-Uuid

bug问题 · Adia · 于 4年前 发布 · 1363 次阅读

/payment/paypal/standard/start,标准支付没有去除Fecshop-Uuid

Header头 有Fecshop-Uuid,出现下面报错

{
"name": "Database Exception",
"message": "Failed to open redis DB connection (localhost:6379, database=4): 111 - Connection refused",
"code": 111,
"type": "yii\\db\\Exception",
"file": "/home/lnmp/web/fecmall/vendor/yiisoft/yii2-redis/src/Connection.php",
"line": 565,
"stack-trace": [
    "#0 /home/lnmp/web/fecmall/vendor/yiisoft/yii2-redis/src/Connection.php(665): yii\\redis\\Connection->open()",
    "#1 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/services/session/SessionRedis.php(36): yii\\redis\\Connection->executeCommand('GET', Array)",
    "#2 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/services/Session.php(135): fecshop\\services\\session\\SessionRedis->get('current_order_i...', false)",
    "#3 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/services/Order.php(877): fecshop\\services\\Session->get('current_order_i...')",
    "#4 [internal function]: fecshop\\services\\Order->actionGetSessionIncrementId()",
    "#5 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/services/Service.php(54): call_user_func_array(Array, Array)",
    "#6 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/app/appserver/modules/Payment/block/paypal/standard/Start.php(32): fecshop\\services\\Service->__call('getSessionIncre...', Array)",
    "#7 /home/lnmp/web/fecmall/vendor/fancyecommerce/fecshop/app/appserver/modules/Payment/controllers/paypal/StandardController.php(35): fecshop\\app\\appserver\\modules\\Payment\\block\\paypal\\standard\\Start->startPayment()",
    "#8 [internal function]: fecshop\\app\\appserver\\modules\\Payment\\controllers\\paypal\\StandardController->actionStart()",
    "#9 /home/lnmp/web/fecmall/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)",
    "#10 /home/lnmp/web/fecmall/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)",
    "#11 /home/lnmp/web/fecmall/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller->runAction('start', Array)",
    "#12 /home/lnmp/web/fecmall/vendor/yiisoft/yii2/web/Application.php(103): yii\\base\\Module->runAction('payment/paypal/...', Array)",
    "#13 /home/lnmp/web/fecmall/vendor/yiisoft/yii2/base/Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))",
    "#14 /home/lnmp/web/fecmall/appserver/web/index.php(79): yii\\base\\Application->run()",
    "#15 {main}"
],
"error-info": "Connection refused"
}
共收到 4 条回复
1楼 已删除.
Adia#24年前 0 个赞

原因是:fecshop\app\appserver\modules\Payment\block\paypal\standard\Start.php

第32行:

$increment_id = Yii::$service->order->getSessionIncrementId();

getSessionIncrementId()是从session中取出来订单号的

Fecmall#34年前 0 个赞

下午或者晚上看一下你的帖子,最近有点忙

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics