|
@@ -287,6 +287,7 @@ class AuctionOrder extends BaseModel
|
|
|
$auction = Auction::where('id', $product['auction_id'])->find();
|
|
|
$booking = AuctionBooking::where([['uid', '=', $v['uid']], ['status', '=', 1], ['auction_id', '=', $auction['id']], ['frequency', '=', $auction['frequency']]])->find();
|
|
|
$fz = AuctionFrozen::where('order_id', $v['order_id'])->where('status', 1)->find();
|
|
|
+ $userl = \app\models\user\User::where('uid', $v['uid'])->find();
|
|
|
if ($fz) {
|
|
|
if (strtotime($v['create_time']) <= $hour and strtotime($v['create_time']) > $time) {
|
|
|
|
|
@@ -294,7 +295,7 @@ class AuctionOrder extends BaseModel
|
|
|
$user = \app\models\user\User::where('uid', $v['collection_id'])->find();
|
|
|
$user['anticipate'] = $user['anticipate'] + $fz['anticipate'] / 2;
|
|
|
$fz['deduction'] = $fz['anticipate'] / 2;
|
|
|
- UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $fz['anticipate'] / 2, $v['uid'], $user['anticipate'], '(' . $user['nickname'] . '-' . $user['uid'] . ')超时付款,增加艺金券');
|
|
|
+ UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $fz['anticipate'] / 2, $v['uid'], $user['anticipate'], '(' . $userl['nickname'] . '-' . $userl['uid'] . ')超时付款,增加艺金券');
|
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $fz['anticipate'] / 2, $v['uid'], $fz['anticipate'] / 2, '超时付款,扣除订单'.$v['order_id'].'冻结'. ($fz['anticipate'] / 2) . '艺金券');
|
|
|
$fz->save();
|
|
|
$user->save();
|
|
@@ -309,7 +310,7 @@ class AuctionOrder extends BaseModel
|
|
|
|
|
|
$user->save();
|
|
|
\app\models\user\User::where('uid', $v['uid'])->update(['status' => 0, 'freeze_time' => strtotime('+1 day')]);
|
|
|
- UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $dedu, $v['uid'], $user['anticipate'], '(' . $user['nickname'] . '-' . $user['uid'] . ')超时付款,增加艺金券');
|
|
|
+ UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $dedu, $v['uid'], $user['anticipate'], '(' . $userl['nickname'] . '-' . $userl['uid'] . ')超时付款,增加艺金券');
|
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除订单'.$v['order_id'].'冻结' . $dedu . '艺金券');
|
|
|
$fz->save();
|
|
|
|
|
@@ -324,7 +325,7 @@ class AuctionOrder extends BaseModel
|
|
|
$user = \app\models\user\User::where('uid', $v['collection_id'])->find();
|
|
|
$user['anticipate'] = $user['anticipate'] + $booking['anticipate'] / 2;
|
|
|
$booking['deduction'] = $booking['anticipate'] / 2;
|
|
|
- UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $booking['anticipate'] / 2, $v['uid'], $user['anticipate'], '(' . $user['nickname'] . '-' . $user['uid'] . ')超时付款,增加艺金券');
|
|
|
+ UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $booking['anticipate'] / 2, $v['uid'], $user['anticipate'], '(' . $userl['nickname'] . '-' . $userl['uid'] . ')超时付款,增加艺金券');
|
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $booking['anticipate'] / 2, $v['uid'], $booking['anticipate'] / 2, '超时付款,扣除预约冻结' . ($booking['anticipate'] / 2) . '艺金券');
|
|
|
$booking->save();
|
|
|
$user->save();
|
|
@@ -340,7 +341,7 @@ class AuctionOrder extends BaseModel
|
|
|
|
|
|
$user->save();
|
|
|
\app\models\user\User::where('uid', $v['uid'])->update(['status' => 0, 'freeze_time' => strtotime('+1 day')]);
|
|
|
- UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $dedu, $v['uid'], $user['anticipate'], '(' . $user['nickname'] . '-' . $user['uid'] . ')超时付款,增加艺金券');
|
|
|
+ UserBill::income('超时增加', $v['collection_id'], 'anticipate', 'ad_anticipate', $dedu, $v['uid'], $user['anticipate'], '(' . $userl['nickname'] . '-' . $userl['uid'] . ')超时付款,增加艺金券');
|
|
|
UserBill::expend('超时扣除', $v['uid'], 'anticipate', 'dec_anticipate', $dedu, $v['uid'], 0, '超时付款,扣除预约冻结' . $dedu . '艺金券');
|
|
|
$booking->save();
|
|
|
|