Browse Source

会员升级

Kirin 1 year ago
parent
commit
1a845ce58f
1 changed files with 0 additions and 22 deletions
  1. 0 22
      app/controller/api/v1/PublicController.php

+ 0 - 22
app/controller/api/v1/PublicController.php

@@ -61,29 +61,7 @@ class PublicController extends BaseController
 
     public function test()
     {
-        $fee = sys_data('withdraw_fee');
-        $fees = [];
-        foreach ($fee as $v) {
-            $fees[$v['month_number']] = (string)$v['fee'];
-        }
-        krsort($fees);
-        $sum_money = 30000;
-        $money = 80000;
-        $extract_fee = 0;
-        $max = PHP_INT_MAX;
-        foreach ($fees as $k => $v) {
-            if ($sum_money > $max) {
-                break;
-            }
-            $max = $k;
-            if ($sum_money + $money > $k) {
-                var_dump($money);
-                $extract_fee = bcadd($extract_fee, bcmul((string)($sum_money + $money - ($sum_money > $k ? $sum_money : $k)), bcdiv($v, '100', 4), 2));
-                $money = $money - ($sum_money + $money - $k);
-                var_dump($extract_fee);
 
-            }
-        }
     }
 
     /**