|
|
@@ -1083,7 +1083,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$this->getOrderAward($order); //订单收货赠送分红额度等等
|
|
|
@file_put_contents('quanju.txt', "-测试2\r\n", 8);
|
|
|
$this->spreadOrder($order['uid'],$order['order_id']); //查找上级是否有冻结份额
|
|
|
- @file_put_contents('quanju.txt', "-是否全部终结\r\n", 8);
|
|
|
}
|
|
|
|
|
|
// 订单收货赠送分红额度
|
|
|
@@ -1126,7 +1125,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$number2 = systemConfig('award_integral_gift_pack', 1);
|
|
|
}
|
|
|
if ($type == 5||$type == 0) { //节能油商品和普通商品
|
|
|
- @file_put_contents('quanju.txt', "-测试3\r\n", 8);
|
|
|
$number = systemConfig('award_energy_saving_oil', 1); //获得份额的基准线
|
|
|
if ($order['pay_price'] >= $number) {
|
|
|
// $count = app()->make(User::class)->spread_order($order['uid']); //获取推荐下级订单数
|
|
|
@@ -1165,7 +1163,6 @@ class StoreOrderRepository extends BaseRepository
|
|
|
} elseif ($type == 6) { //礼包商品
|
|
|
$number = systemConfig('award_energy_saving_oil', 1);
|
|
|
@file_put_contents('quanju2.txt', $order['pay_price']."-支付金额\r\n", 8);
|
|
|
- @file_put_contents('quanju2.txt', $number."-获得份额界限\r\n", 8);
|
|
|
if ($order['pay_price'] >= $number) {
|
|
|
$order_award_range = bcmul($order['pay_price'], 3, 2);
|
|
|
$after = bcadd($award_range, $order_award_range, 2);
|
|
|
@@ -1195,7 +1192,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
'balance' => $after2,
|
|
|
'status' => 1,
|
|
|
'link_id' => $order['order_id'],
|
|
|
- 'mark' => $user['nickname'] . '成功消费'.$mark.'商品' . floatval($order['pay_price']) . '元,奖励分红积分' . $order_award_range,
|
|
|
+ 'mark' => $user['nickname'] . '成功消费'.$mark.'商品' . floatval($order['pay_price']) . '元,奖励分红积分' . $order_award_range.'(积分价格:'.$price['price'].')',
|
|
|
]);
|
|
|
User::where('uid', $order['uid'])->update(['award_integral' => $after2]);
|
|
|
}
|
|
|
@@ -1296,7 +1293,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
'balance' => $after,
|
|
|
'status' => 1,
|
|
|
'link_id' => $order['order_id'],
|
|
|
- 'mark' => $user['nickname'] . '成功消费节能油商品' . floatval($order['pay_price']) . '元,奖励上级分红积分' . $order_award_range,
|
|
|
+ 'mark' => $user['nickname'] . '成功消费节能油商品' . floatval($order['pay_price']) . '元,奖励上级分红积分' . $order_award_range.'(积分价格:'.$price['price'].')',
|
|
|
]);
|
|
|
}
|
|
|
@file_put_contents('quanju.txt', "-村上春树5\r\n", 8);
|
|
|
@@ -1325,7 +1322,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
'balance' => $after,
|
|
|
'status' => 1,
|
|
|
'link_id' => $order['order_id'],
|
|
|
- 'mark' => $user['nickname'] . '成功消费礼包商品' . floatval($order['pay_price']) . '元,奖励上级分红积分' . $order_award_range,
|
|
|
+ 'mark' => $user['nickname'] . '成功消费礼包商品' . floatval($order['pay_price']) . '元,奖励上级分红积分' . $order_award_range.'(积分价格:'.$price['price'].')',
|
|
|
]);
|
|
|
}
|
|
|
break;
|
|
|
@@ -1361,7 +1358,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
'balance' => $after,
|
|
|
'status' => 1,
|
|
|
'link_id' => $order['order_id'],
|
|
|
- 'mark' => '服务中心核销节能油获得分红积分' . $integral,
|
|
|
+ 'mark' => '服务中心核销节能油获得分红积分' . $integral.'(积分价格:'.$price['price'].')',
|
|
|
]);
|
|
|
User::where('uid', $uid)->update(['award_integral'=>$after]);
|
|
|
}
|