|
|
$user_award = bcdiv($award_price,$v,2); //每个用户奖励金额
|
|
$user_award = bcdiv($award_price,$v,2); //每个用户奖励金额
|
|
|
$after = bcadd($value['brokerage_price'], $user_award, 2); //更新用户奖励金额
|
|
$after = bcadd($value['brokerage_price'], $user_award, 2); //更新用户奖励金额
|
|
|
$res = UserBill::income('获得分账健康币', $value['uid'], 'brokerage_price', 'spread_award', $award_price, $order['id'], $after, $mark, 0);
|
|
$res = UserBill::income('获得分账健康币', $value['uid'], 'brokerage_price', 'spread_award', $award_price, $order['id'], $after, $mark, 0);
|
|
|
User::where('uid', $value['uid'])->update(['brokerage_price' => $after]);
|
|
User::where('uid', $value['uid'])->update(['brokerage_price' => $after]);
|