refactor(订单服务): 移除冗余的订单可编辑性检查注释

注释说明检查应在 save 方法中进行
This commit is contained in:
tikkhun 2026-01-10 11:16:35 +08:00
parent 4eb45af452
commit 64c1d1afe5
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ export class OrderService {
this.logger.debug('订单状态为 AUTO_DRAFT,跳过处理', siteId, order.id) this.logger.debug('订单状态为 AUTO_DRAFT,跳过处理', siteId, order.id)
return; return;
} }
// 这里其实不用过滤不可编辑的行为,而是应在 save 中做判断
// if(!order.is_editable && !forceUpdate){ // if(!order.is_editable && !forceUpdate){
// this.logger.debug('订单不可编辑,跳过处理', siteId, order.id) // this.logger.debug('订单不可编辑,跳过处理', siteId, order.id)
// return; // return;