From 26eed0483b37dd57df45d62b0d96c7a281072390 Mon Sep 17 00:00:00 2001 From: mattoid Date: Wed, 26 Jun 2024 19:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9F=BA=E7=A1=80=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/PostStoreController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/PostStoreController.php b/src/Controller/PostStoreController.php index cebfea2..ead74a5 100644 --- a/src/Controller/PostStoreController.php +++ b/src/Controller/PostStoreController.php @@ -37,7 +37,7 @@ protected function data(ServerRequestInterface $request, Document $document) { throw new ValidationException(['message' => $this->translator->trans('mattoid-store.admin.error.invalid-product')]); } - StoreModel::query()->insert([ + $result = StoreModel::query()->insert([ 'code' => $parseBody['code'], 'title' => $parseBody['title'], 'uri' => $commodity->uri, @@ -54,6 +54,6 @@ protected function data(ServerRequestInterface $request, Document $document) { 'desc' => $parseBody['desc'], ]); - return []; + return $result; } }