hrjy 2 년 전
부모
커밋
ca2c5dc44f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/models/auction/AuctionOrder.php

+ 1 - 1
app/models/auction/AuctionOrder.php

@@ -440,7 +440,7 @@ class AuctionOrder extends BaseModel
                     $lists = [];
                     if ($list){
                         foreach ($list as $k => $v) {
-                            $order = AuctionOrder::where('product_id', $v['id'])->where('status', '>', 0)->where('frequency', $item['frequency'])->find();
+                            $order = AuctionOrder::where('product_id', $v['id'])->where('status', '>', 0)->where('auction_id', $item['id'])->where('frequency', $item['frequency'])->find();
                             if ($order){
                                 $list[$k]['status'] = 2;// 已被购买
                                 $list[$k]['str'] = '已卖完';