有大佬帮帮忙吗?
商品结算界面跳出网络错误
code: 500,
msg: Too few arguments to function app\plugins\vip_card\Plugin::vipDiscount(), 1 passed in /www/wwwroot/xcx.lfdjc.top/forms/api/order/OrderSubmitForm.php on line 2 and exactly 2 expected,
detail: ["#181: /www/wwwroot/xcx.lfdjc.top/plugins/vip_card/Plugin.php","#2: /www/wwwroot/xcx.lfdjc.top/forms/api/order/OrderSubmitForm.php","#1: /www/wwwroot/xcx.lfdjc.top/forms/api/order/OrderSubmitForm.php","#47: /www/wwwroot/xcx.lfdjc.top/controllers/api/OrderController.php","#0: app\\controllers\\api\\OrderController->actionPreview()","#57: /www/wwwroot/xcx.lfdjc.top/vendor/yiisoft/yii2/base/InlineAction.php","#157: /www/wwwroot/xcx.lfdjc.top/vendor/yiisoft/yii2/base/Controller.php","#528: /www/wwwroot/xcx.lfdjc.top/vendor/yiisoft/yii2/base/Module.php","#228: /www/wwwroot/xcx.lfdjc.top/core/Application.php","#103: /www/wwwroot/xcx.lfdjc.top/vendor/yiisoft/yii2/web/Application.php","#386: /www/wwwroot/xcx.lfdjc.top/vendor/yiisoft/yii2/base/Application.php","#16: /www/wwwroot/xcx.lfdjc.top/web/index.php"]
2个参数的,你只传了一个
参数少了