|
@@ -224,23 +224,23 @@ class AuctionOrder extends BaseModel
|
|
|
|
|
|
|
|
|
|
$user = $userModel->find($data['uid']);
|
|
$user = $userModel->find($data['uid']);
|
|
- if ($user['is_new'] == 1) {
|
|
|
|
|
|
+ // if ($user['is_new'] == 1) {
|
|
|
|
|
|
- if ($user['spread_uid']) {
|
|
|
|
- $spread = $userModel->where('uid', $user['spread_uid'])->find();
|
|
|
|
- if ($spread['green_time'] != strtotime(date('Y-m-d', strtotime('+1 day')))) {
|
|
|
|
- $spread['green_time'] = strtotime(date('Y-m-d', strtotime('+1 day'))); // 开启明天的绿色通道
|
|
|
|
- $spread->save();
|
|
|
|
- }
|
|
|
|
|
|
+ // if ($user['spread_uid']) {
|
|
|
|
+ // $spread = $userModel->where('uid', $user['spread_uid'])->find();
|
|
|
|
+ // if ($spread['green_time'] != strtotime(date('Y-m-d', strtotime('+1 day')))) {
|
|
|
|
+ // $spread['green_time'] = strtotime(date('Y-m-d', strtotime('+1 day'))); // 开启明天的绿色通道
|
|
|
|
+ // $spread->save();
|
|
|
|
+ // }
|
|
|
|
|
|
- }
|
|
|
|
- $orderCount = AuctionOrder::where([['uid', '=', $user['uid']], ['status', '=', 3]])->count();
|
|
|
|
- if ($orderCount >= 5) {
|
|
|
|
- $user['is_new'] = 0;
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
+ // $orderCount = AuctionOrder::where([['uid', '=', $user['uid']], ['status', '=', 3]])->count();
|
|
|
|
+ // if ($orderCount >= 5) {
|
|
|
|
+ // $user['is_new'] = 0;
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
$product = $productModel->where('id', $data['product_id'])->find();
|
|
$product = $productModel->where('id', $data['product_id'])->find();
|
|
$auction = $auctionModel->where('id', $product['auction_id'])->find();
|
|
$auction = $auctionModel->where('id', $product['auction_id'])->find();
|
|
|
|
|
|
@@ -317,7 +317,7 @@ class AuctionOrder extends BaseModel
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除订单'.$v['order_id'].'冻结' . $dedu . '易趣卷');
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除订单'.$v['order_id'].'冻结' . $dedu . '易趣卷');
|
|
$fz->save();
|
|
$fz->save();
|
|
|
|
|
|
- AuctionOrder::where('create_time', '<', $hour)->where('status', '=', 1)->update(['status' => 0]); // 修改为已过期订单
|
|
|
|
|
|
+ AuctionOrder::where('id', $v['id'])->where('status', '=', 1)->update(['status' => 0]); // 修改为已过期订单
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -350,7 +350,7 @@ class AuctionOrder extends BaseModel
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除预约冻结' . $dedu . '易趣卷');
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除预约冻结' . $dedu . '易趣卷');
|
|
$booking->save();
|
|
$booking->save();
|
|
|
|
|
|
- AuctionOrder::where('create_time', '<', $hour)->where('status', '=', 1)->update(['status' => 0]); // 修改为已过期订单
|
|
|
|
|
|
+ AuctionOrder::where('id', $v['id'])->where('status', '=', 1)->update(['status' => 0]); // 修改为已过期订单
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|