|
|
@@ -1079,10 +1079,10 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// 触发订单领取后的事件。
|
|
|
event('order.take', compact('order'));
|
|
|
// 订单赠送的分红额度和积分处理还是礼包购买数处理,顺便检测升级
|
|
|
- @file_put_contents('quanju.txt', "-村上春树1\r\n", 8);
|
|
|
- $this->getOrderAward($order); //订单收货赠送分红额度等等
|
|
|
@file_put_contents('quanju.txt', "-测试2\r\n", 8);
|
|
|
$this->spreadOrder($order['uid'],$order['order_id']); //查找上级是否有冻结份额
|
|
|
+ @file_put_contents('quanju.txt', "-村上春树1\r\n", 8);
|
|
|
+ $this->getOrderAward($order); //订单收货赠送分红额度等等
|
|
|
}
|
|
|
|
|
|
// 订单收货赠送分红额度
|
|
|
@@ -1274,10 +1274,10 @@ class StoreOrderRepository extends BaseRepository
|
|
|
public function getSpreadIntegral($order, $type,$user)
|
|
|
{
|
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
|
- @file_put_contents('quanju.txt', json_encode($price) . "-积分金额2\r\n", 8);
|
|
|
+ @file_put_contents('quanju.txt', json_encode($price) . "-积分金额3\r\n", 8);
|
|
|
// $spread_uid = User::where('uid', $order['uid'])->value('spread_uid');
|
|
|
$order_award_range=0;
|
|
|
- if ($user['spread_uid']!=0){
|
|
|
+ if ($user['spread_uid']>0){
|
|
|
$make = app()->make(UserBillRepository::class);
|
|
|
switch ($type) {
|
|
|
case 0: //普通商品
|