|
@@ -1170,12 +1170,15 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// 上级推荐奖励的分红积分
|
|
// 上级推荐奖励的分红积分
|
|
|
$this->getSpreadIntegral($order, $type,$user);
|
|
$this->getSpreadIntegral($order, $type,$user);
|
|
|
// 检测节能油或者礼包升级
|
|
// 检测节能油或者礼包升级
|
|
|
|
|
+ $AwardLake = app()->make(AwardLake::class);
|
|
|
if ($type==5){
|
|
if ($type==5){
|
|
|
- OilLevel::checkLevel($order['uid']);
|
|
|
|
|
- AwardLake::addOrderLakes(1,$order['pay_price'],$order['order_id']);
|
|
|
|
|
|
|
+ $oil = app()->make(OilLevel::class);
|
|
|
|
|
+ $oil->checkLevel($order['uid']);
|
|
|
|
|
+ $AwardLake->addOrderLakes(1,$order['pay_price'],$order['order_id']);
|
|
|
}elseif ($type==6){
|
|
}elseif ($type==6){
|
|
|
- GiftLevel::checkLevel($order['uid']);
|
|
|
|
|
- AwardLake::addOrderLakes(2,$order['pay_price'],$order['order_id']);
|
|
|
|
|
|
|
+ $gift = app()->make(GiftLevel::class);
|
|
|
|
|
+ $gift->checkLevel($order['uid']);
|
|
|
|
|
+ $AwardLake->addOrderLakes(2,$order['pay_price'],$order['order_id']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|