多商户ajaxUpdateOrderAndShipping方法报错

FecMall问题咨询 · cqslxz · 于 4年前 发布 · 1442 次阅读

appserver接口/checkout/onepage/getshippingandcartinfo

{
    "name": "Exception",
    "message": "fecshop service method is not exit.  fbbcbase\\services\\Shipping::actionGetThemesByBdminUserId",
    "code": 0,
    "type": "yii\\base\\InvalidCallException",
    "file": "C:\\work\\fecmall\\vendor\\fancyecommerce\\fecshop\\services\\Service.php",
    "line": 59,
    "stack-trace": [
        "#0 C:\\work\\fecmall\\vendor\\fecmall\\fbbcbase\\services\\Shipping.php(59): fecshop\\services\\Service->__call('getThemesByBdmi...', Array)",
        "#1 C:\\work\\fecmall\\vendor\\fecmall\\fbbcbase\\services\\Shipping.php(271): fbbcbase\\services\\Shipping->getAvailableShippingMethods('CN', 'CQ', 1.2)",
        "#2 [internal function]: fbbcbase\\services\\Shipping->actionGetCurrentShippingMethod(NULL, NULL, 'CN', 'CQ', 1.2)",
        "#3 C:\\work\\fecmall\\vendor\\fancyecommerce\\fecshop\\services\\Service.php(54): call_user_func_array(Array, Array)",
        "#4 C:\\work\\fecmall\\vendor\\fecmall\\fbbcbase\\app\\appserver\\modules\\Checkout\\block\\onepage\\Index.php(210): fecshop\\services\\Service->__call('getCurrentShipp...', Array)",
        "#5 C:\\work\\fecmall\\vendor\\fecmall\\fbbcbase\\app\\appserver\\modules\\Checkout\\block\\onepage\\Index.php(290): fbbcbase\\app\\appserver\\modules\\Checkout\\block\\onepage\\Index->getShippings(NULL)",
        "#6 C:\\work\\fecmall\\vendor\\fecmall\\fbbcbase\\app\\appserver\\modules\\Checkout\\controllers\\OnepageController.php(143): fbbcbase\\app\\appserver\\modules\\Checkout\\block\\onepage\\Index->ajaxUpdateOrderAndShipping()",
        "#7 [internal function]: fbbcbase\\app\\appserver\\modules\\Checkout\\controllers\\OnepageController->actionGetshippingandcartinfo()",
        "#8 C:\\work\\fecmall\\vendor\\yiisoft\\yii2\\base\\InlineAction.php(57): call_user_func_array(Array, Array)",
        "#9 C:\\work\\fecmall\\vendor\\yiisoft\\yii2\\base\\Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)",
        "#10 C:\\work\\fecmall\\vendor\\yiisoft\\yii2\\base\\Module.php(528): yii\\base\\Controller->runAction('getshippingandc...', Array)",
        "#11 C:\\work\\fecmall\\vendor\\yiisoft\\yii2\\web\\Application.php(103): yii\\base\\Module->runAction('checkout/onepag...', Array)",
        "#12 C:\\work\\fecmall\\vendor\\yiisoft\\yii2\\base\\Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))",
        "#13 C:\\work\\fecmall\\appserver\\web\\index.php(117): yii\\base\\Application->run()",
        "#14 {main}"
    ]
}

vender/services/shopping 里面 getAvailableShippingMethods()

共收到 3 条回复 问题提问
Fecmall#14年前 0 个赞

fecmall不在调用这个api,这个api废弃了

每个商户的运费单独计算,因此fecshop的计算运费的部分废弃了。

下单页面没有调用过这个api: http://vue.fecmall.com/#/checkout/onepage ,不知道你为什么要调用这个api

这些代码后面会删除掉

Fecmall#24年前 0 个赞

http://bbc.appserver.fecmall.com/checkout/onepage/index

这个api,在返回数据的cart_info里面有shiiping信息。

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