|
@@ -911,14 +911,16 @@ class StoreOrder extends BaseModel
|
|
|
$top1['brokerage_price'] += 130;
|
|
|
$price = 130;
|
|
|
}
|
|
|
- if ($top1['spread_uid']){
|
|
|
- $user = getParent($top1['uid']);
|
|
|
- if ($user){
|
|
|
- foreach ($user as $v){
|
|
|
- $top = User::where('uid', $v)->find();
|
|
|
- $top['brokerage_price'] += 90;
|
|
|
- $top->save();
|
|
|
- UserBill::income('佣金', $top1['uid'], 'now_money', 'brokerage', 90, 0, $top['brokerage_price'], '间推399礼包奖励');
|
|
|
+ if ($price < 130){
|
|
|
+ if ($top1['spread_uid']){
|
|
|
+ $user = getParent($top1['uid']);
|
|
|
+ if ($user){
|
|
|
+ foreach ($user as $v){
|
|
|
+ $top = User::where('uid', $v)->find();
|
|
|
+ $top['brokerage_price'] += 90;
|
|
|
+ $top->save();
|
|
|
+ UserBill::income('佣金', $top['uid'], 'now_money', 'brokerage', 90, 0, $top['brokerage_price'], '间推399礼包奖励');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|