Browse Source

refactor: 移除地址验证中的冗余状态检查

在OrderService中,更新了validateOrderData方法,移除了对地址状态的冗余检查,以简化地址验证逻辑。这一更改旨在提升代码的可读性和维护性,同时确保地址验证的准确性。
刘学玺 2 months ago
parent
commit
ac619aa832
1 changed files with 0 additions and 1 deletions
  1. 0 1
      app/Services/Client/OrderService.php

+ 0 - 1
app/Services/Client/OrderService.php

@@ -561,7 +561,6 @@ readonly class OrderService
             $address = DB::table('member_address')
                 ->where('id', $data['address_id'])
                 ->where('user_id', $userId)
-                ->where('state', 1)
                 ->first();
             abort_if(!$address, 404, '地址不存在');
         }