Skip to content

Commit

Permalink
增加基础功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Jun 26, 2024
1 parent 8d390aa commit 26eed04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/PostStoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -54,6 +54,6 @@ protected function data(ServerRequestInterface $request, Document $document) {
'desc' => $parseBody['desc'],
]);

return [];
return $result;
}
}

0 comments on commit 26eed04

Please sign in to comment.