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]); + } }