很抱歉...

[0] InvalidArgumentException in App.php line 294

方法参数错误:goodsid

  1. $args[] = method_exists($className, 'instance') ? $className::instance() : new $className;
  2. }
  3. } elseif (1 == $type && !empty($vars)) {
  4. $args[] = array_shift($vars);
  5. } elseif (0 == $type && isset($vars[$name])) {
  6. $args[] = $vars[$name];
  7. } elseif ($param->isDefaultValueAvailable()) {
  8. $args[] = $param->getDefaultValue();
  9. } else {
  10. throw new \InvalidArgumentException('method param miss:' . $name);
  11. }
  12. }
  13. }
  14. return $args;
  15. }
  16. /**
  17. * 执行模块
  18. * @access public