Kirin 2 years ago
parent
commit
037fab1701
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/user/User.php

+ 2 - 2
app/models/user/User.php

@@ -366,9 +366,9 @@ class User extends BaseModel
         if ($realBrokeragePrice > 0) {
             $spreadUserInfoTwo = User::getUserInfo($userInfoTwo['spread_uid']);
             //TODO 上级推广员返佣之后的金额
-            $mark = '二级推广人' . $userInfo['nickname'] . '成功消费[实体产品]' . floatval($orderInfo['pay_price']) . '元,奖励推广佣金' . floatval($virtualBrokeragePrice);
+            $mark = '二级推广人' . $userInfo['nickname'] . '成功消费[实体产品]' . floatval($orderInfo['pay_price']) . '元,奖励推广佣金' . floatval($realBrokeragePrice);
             //TODO 添加推广记录
-            $res = UserBill::income('获得推广佣金', $userInfoTwo['spread_uid'], 'now_money', 'brokerage', $virtualBrokeragePrice, $orderInfo['id'], $spreadUserInfoTwo['brokerage_price'], $mark, 0);
+            $res = UserBill::income('获得推广佣金', $userInfoTwo['spread_uid'], 'now_money', 'brokerage', $realBrokeragePrice, $orderInfo['id'], $spreadUserInfoTwo['brokerage_price'], $mark, 0);
         }
 //        $res = $res && self::backOrderBrokerageTwo($orderInfo);
 //        $open && self::checkTrans($res);