$exception->getResponse();

 

$params = [
            'company_id' => $this->request->input('company_id'),
            'quantity' => $this->request->input('quantity'),
            'sku_id' => $this->request->input('sku_id'),
            'type' => $this->request->input('type', 0),
        ];

        $user = User::find(50068);

        $dispatcher = app('Dingo\Api\Dispatcher');

        try {
            $res = $dispatcher->be($user)->with($params)
                ->post('api/order/cart');

            return $res;
        } catch (InternalHttpException $internalHttpException) {
            return $internalHttpException->getResponse();
        }

  

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-11-30
  • 2021-08-18
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案