Selaa lähdekoodia

fix(order): 修复订单状态检查逻辑

- 将订单状态条件从 5 改为 0
- 保持商户ID过滤功能不变
- 确保删除标记和支付状态检查正常工作
shichen 3 kuukautta sitten
vanhempi
commit
2e11764dcd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -4914,7 +4914,7 @@ class StoreOrderRepository extends BaseRepository
4914 4914
      */
4915 4915
     public function merStatusExists(int $id, ?int $merId)
4916 4916
     {
4917
-        $where = ['order_id' => $id, 'is_del' => 0, 'paid' => 0, 'status' => 5];
4917
+        $where = ['order_id' => $id, 'is_del' => 0, 'paid' => 0, 'status' => 0];
4918 4918
         if ($merId) $where['mer_id'] = $merId;
4919 4919
         return $this->dao->merFieldExists($where);
4920 4920
     }