|
|
@@ -3803,8 +3803,9 @@ class StoreOrderRepository extends BaseRepository
|
|
3803
|
3803
|
if ($sprerdUser["user_group"] == 7) {
|
|
3804
|
3804
|
$yongjinbili = 17;
|
|
3805
|
3805
|
}
|
|
3806
|
|
-
|
|
3807
|
|
- $tuiguanyongjin = round($pvfee * $yongjinbili / 100, 2);
|
|
|
3806
|
+ $yongjin = $pvfee * $yongjinbili / 100;
|
|
|
3807
|
+ // 佣金百分之90进入佣金池
|
|
|
3808
|
+ $tuiguanyongjin = round($yongjin * 0.9, 2);
|
|
3808
|
3809
|
|
|
3809
|
3810
|
|
|
3810
|
3811
|
$tuiYongmark = "推荐消费获得佣金" . $tuiguanyongjin;
|
|
|
@@ -3819,6 +3820,21 @@ class StoreOrderRepository extends BaseRepository
|
|
3819
|
3820
|
Db::name('log')->insert(['data' => '订单号:' . $order_sn . '付款额度较低或 商家、平台设置的返佣比例较低,佣金低于0.01无法入库 特此记录!']);
|
|
3820
|
3821
|
}
|
|
3821
|
3822
|
|
|
|
3823
|
+ if($yongjin >= 0.1){
|
|
|
3824
|
+ // 佣金百分之10进入复购金
|
|
|
3825
|
+ $orderThird = app()->make(UserThirdRepository::class);
|
|
|
3826
|
+ //复购金
|
|
|
3827
|
+ $orderThird->yuguFugou(
|
|
|
3828
|
+ $yongjin,
|
|
|
3829
|
+ $sprerdUser["uid"],
|
|
|
3830
|
+ $order_sn,
|
|
|
3831
|
+ $order["type_shop"]
|
|
|
3832
|
+ );
|
|
|
3833
|
+ } else {
|
|
|
3834
|
+ Db::name('log')->insert(['data' => '订单号:' . $order_sn . '付款额度较低或 商家、平台设置的返佣比例较低,复购金低于0.01无法入库 特此记录!']);
|
|
|
3835
|
+ }
|
|
|
3836
|
+
|
|
|
3837
|
+
|
|
3822
|
3838
|
}
|
|
3823
|
3839
|
//end存养老金
|
|
3824
|
3840
|
|