diff --git a/app/Controller/Admin/OrderController.php b/app/Controller/Admin/OrderController.php index ec79b16..c258a84 100644 --- a/app/Controller/Admin/OrderController.php +++ b/app/Controller/Admin/OrderController.php @@ -35,6 +35,9 @@ class OrderController extends AbstractController return (new OrderListService())->handle(); } + /** + * @return array + */ #[RequestMapping(path: "info", methods: "GET")] #[Scene(scene: "info")] public function info(): array @@ -42,7 +45,10 @@ class OrderController extends AbstractController return (new OrderInfoService())->handle(); } - #[RequestMapping(path: "finish", methods: "GET")] + /** + * @return array + */ + #[RequestMapping(path: "finish", methods: "POST")] #[Scene(scene: "finish")] public function finish(): array { @@ -73,11 +79,15 @@ class OrderController extends AbstractController return (new RefundService)->refundPartial(); } - #[RequestMapping(path: "refund_batch", methods: "GET")] + /** + * @return array + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface + */ + #[RequestMapping(path: "refund_batch", methods: "POST")] #[Scene(scene: "refund_batch")] public function batchRefund() { - // todo return (new RefundService)->refundBatch(); } } diff --git a/app/Service/Admin/Order/RefundService.php b/app/Service/Admin/Order/RefundService.php index 29d6938..ef7e0f8 100644 --- a/app/Service/Admin/Order/RefundService.php +++ b/app/Service/Admin/Order/RefundService.php @@ -87,8 +87,6 @@ class RefundService extends BaseService /** * @return array - * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface */ public function refundBatch(): array {