|
|
@@ -854,14 +854,19 @@ class StoreOrder extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
if ($product['id'] == 1){
|
|
|
- // 如果是2999礼包
|
|
|
- $order['status'] = 3;
|
|
|
- $order['use'] = 1;
|
|
|
- $order->save();
|
|
|
- if ($user['spread_uid']) self::superior_push($user['spread_uid'],$user['nickname']);
|
|
|
+ if ($order['pay_type'] != 'yue'){
|
|
|
+ // 如果是2999礼包
|
|
|
+ $order['status'] = 3;
|
|
|
+ $order['use'] = 1;
|
|
|
+ $order->save();
|
|
|
+ if ($user['spread_uid']) self::superior_push($user['spread_uid'],$user['nickname']);
|
|
|
+ }
|
|
|
if ($user['level'] < 2) $user['level'] = 2;
|
|
|
+
|
|
|
}else if ($product['price'] == 399 and $product['cate_id'] == 2){
|
|
|
- if ($user['spread_uid']) self::superior($user['spread_uid'],$user['nickname']);
|
|
|
+ if ($order['pay_type'] != 'yue'){
|
|
|
+ if ($user['spread_uid']) self::superior($user['spread_uid'],$user['nickname']);
|
|
|
+ }
|
|
|
if ($user['level'] < 1) $user['level'] = 1;
|
|
|
}else if ($product['cate_id'] == 4){
|
|
|
$coupon = StoreCoupon::where('id', 'in', $product['coupon'])->find();
|
|
|
@@ -944,8 +949,11 @@ class StoreOrder extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $top1->save();
|
|
|
- UserBill::income('佣金', $top1['uid'], 'now_money', 'brokerage', $price, 0, $top1['brokerage_price'], '用户'.$nickname.'购买礼包,直推399礼包奖励');
|
|
|
+ if ($price > 0){
|
|
|
+ $top1->save();
|
|
|
+ UserBill::income('佣金', $top1['uid'], 'now_money', 'brokerage', $price, 0, $top1['brokerage_price'], '用户'.$nickname.'购买礼包,直推399礼包奖励');
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|