|
@@ -173,20 +173,10 @@ class AuctionOrder extends BaseModel
|
|
|
'balance' => $spread['integral']
|
|
|
|
|
|
]);
|
|
|
- $user['anticipate'] = $user['anticipate']-number_format($price*($product['deduct']/100),2);
|
|
|
- $user->save();
|
|
|
- \app\models\user\UserBill::create([
|
|
|
- 'uid' => $user['uid'],
|
|
|
- 'pm' => 0,
|
|
|
- 'title' => '预约卷扣除',
|
|
|
- 'category' => 'anticipate',
|
|
|
- 'type' => 'reduce_anticipate',
|
|
|
- 'mark' => '卖出商品扣除'.number_format($price*($product['deduct']/100), 2).'预约卷',
|
|
|
- 'add_time' => time(),
|
|
|
- 'number' => number_format($price*($product['deduct']/100),2),
|
|
|
- 'balance' => $user['anticipate']
|
|
|
- ]);
|
|
|
}
|
|
|
+ $user['anticipate'] = $user['anticipate']-$price*($product['deduct']/100);
|
|
|
+ $user->save();
|
|
|
+ UserBill::expend('预约卷扣除', $user['uid'], 'anticipate','reduce_anticipate', $price*($product['deduct']/100), 0, $user['anticipate'] ,'卖出扣除预约卷');
|
|
|
$productModel->where('id', $product['id'])->save(['price' => $price, 'hanging_price' => ($price+$price*($product['rise']/100))]);
|
|
|
|
|
|
}
|