|
@@ -440,7 +440,7 @@ class AuctionOrder extends BaseModel
|
|
$lists = [];
|
|
$lists = [];
|
|
if ($list){
|
|
if ($list){
|
|
foreach ($list as $k => $v) {
|
|
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){
|
|
if ($order){
|
|
$list[$k]['status'] = 2;// 已被购买
|
|
$list[$k]['status'] = 2;// 已被购买
|
|
$list[$k]['str'] = '已卖完';
|
|
$list[$k]['str'] = '已卖完';
|