|
@@ -969,10 +969,9 @@ class UserRepository extends BaseRepository
|
|
|
//一级注册折扣百分比
|
|
|
$store_percentage = new StorePercentageRepository();
|
|
|
$store_percentage->deduction_percentage(1,$user->uid,$order_id);
|
|
|
- $p_user = $repository->get($pid);
|
|
|
//二级注册折扣百分比
|
|
|
- if($p_user->order_id){
|
|
|
- $store_percentage->deduction_percentage(2,$user->uid,$p_user->order_id);
|
|
|
+ if($spread->order_id){
|
|
|
+ $store_percentage->deduction_percentage(2,$user->uid,$spread->order_id);
|
|
|
}
|
|
|
}
|
|
|
Queue::push(UserBrokerageLevelJob::class, ['uid' => $spreadUid, 'type' => 'spread_user', 'inc' => 1]);
|