request->only(['page' => 1, 'size' => 10], 'post'); return ShoppingLogic::goodList($param); } //商城商品详情 public function goodInfo() { $code = $this->request->post('code', ''); $val = Validate::rule(Config::get('validate_rules.goodInfo')); if (!$val->check(['code' => $code])) throw new ValidateException($val->getError()); return ShoppingLogic::goodInfo($code); } }