feat : sts

This commit is contained in:
2025-04-16 16:25:10 +08:00
parent d11cc4e96a
commit 4148b77165

View File

@@ -181,8 +181,7 @@ class PurchaseService extends BaseService
if (empty($info)) throw new ErrException('数据不存在'); if (empty($info)) throw new ErrException('数据不存在');
$info->delete(); if (!$info->delete()) throw new ErrException('删除失败');
if (!$info->save()) throw new ErrException('删除失败');
$this->goodCache->delPurchaseCache($info->kitchen_id,$info->cycle_id); $this->goodCache->delPurchaseCache($info->kitchen_id,$info->cycle_id);