From a56a7032d981c305e7857dc370f3827ed974d19a Mon Sep 17 00:00:00 2001 From: guojia <445241500@qq.com> Date: Thu, 25 Apr 2024 10:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/model/Merchant.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/store/model/Merchant.php b/app/store/model/Merchant.php index d47f2b66..311b9063 100644 --- a/app/store/model/Merchant.php +++ b/app/store/model/Merchant.php @@ -53,4 +53,13 @@ class Merchant extends StoreModel $data['store_id'] = self::$storeId; return $data; } + + /** + * 软删除 + * @return bool + */ + public function setDelete(): bool + { + return $this->save(['is_delete' => 1]); + } }