|
@@ -2776,17 +2776,17 @@ class UserRepository extends BaseRepository
|
|
|
if ($all_price > $info['award_range']) $all_price = $info['award_range'];
|
|
if ($all_price > $info['award_range']) $all_price = $info['award_range'];
|
|
|
|
|
|
|
|
if ($all_price > 0) {
|
|
if ($all_price > 0) {
|
|
|
- $commission2 = $all_price;
|
|
|
|
|
- $commission = systemConfig('extract_commission', 0.06);
|
|
|
|
|
- @file_put_contents('quanju2.txt', $commission . "-手续费比例\r\n", 8);
|
|
|
|
|
- $commission = bcmul($commission,0.5,2); //手续费比例的50%
|
|
|
|
|
- if ($commission > 0) {
|
|
|
|
|
- $all_price2 = bcmul((string)$all_price, (string)$commission, 2); //手续费
|
|
|
|
|
- @file_put_contents('quanju2.txt', $commission . "-手续费\r\n", 8);
|
|
|
|
|
-// $commission2 = bcsub($commission2,$all_price,2); //回奖池的手续费
|
|
|
|
|
- $all_price = bcsub($all_price, $all_price2, 2); //奖金减手续费
|
|
|
|
|
- @file_put_contents('quanju2.txt', $all_price . "-减掉手续费的金额\r\n", 8);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// $commission2 = $all_price;
|
|
|
|
|
+// $commission = systemConfig('extract_commission', 0.06);
|
|
|
|
|
+// @file_put_contents('quanju2.txt', $commission . "-手续费比例\r\n", 8);
|
|
|
|
|
+// $commission = bcmul($commission,0.5,2); //手续费比例的50%
|
|
|
|
|
+// if ($commission > 0) {
|
|
|
|
|
+// $all_price2 = bcmul((string)$all_price, (string)$commission, 2); //手续费
|
|
|
|
|
+// @file_put_contents('quanju2.txt', $commission . "-手续费\r\n", 8);
|
|
|
|
|
+//// $commission2 = bcsub($commission2,$all_price,2); //回奖池的手续费
|
|
|
|
|
+// $all_price = bcsub($all_price, $all_price2, 2); //奖金减手续费
|
|
|
|
|
+// @file_put_contents('quanju2.txt', $all_price . "-减掉手续费的金额\r\n", 8);
|
|
|
|
|
+// }
|
|
|
// 可提现奖金和份额
|
|
// 可提现奖金和份额
|
|
|
$award = bcsub($all_price, $info['award_range'], 2);
|
|
$award = bcsub($all_price, $info['award_range'], 2);
|
|
|
$this->addFrozenBrokerage($uid, $award); //冻结奖金
|
|
$this->addFrozenBrokerage($uid, $award); //冻结奖金
|