[0] HttpException in App.php line 581

方法不存在:app\shop\controller\Goods->cart()

  1. if (is_callable([$instance, $action])) {
  2. // 执行操作方法
  3. $call = [$instance, $action];
  4. } elseif (is_callable([$instance, '_empty'])) {
  5. // 空操作
  6. $call = [$instance, '_empty'];
  7. $vars = [$actionName];
  8. } else {
  9. // 操作不存在
  10. throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
  11. }
  12. Hook::listen('action_begin', $call);
  13. return self::invokeMethod($call, $vars);
  14. }
  15. /**
  16. * URL路由检测(根据PATH_INFO)

Call Stack

  1. in App.php line 581
  2. at App::module(['shop', 'Goods', 'Cart'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 452
  3. at App::exec(['type' => 'module', 'module' => ['shop', 'Goods', 'Cart']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  4. at App::run() in start.php line 19
  5. at require('/data/wwwroot/lt95/t...') in index.php line 5