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