Browse Source

会员升级

Kirin 1 year ago
parent
commit
5b890847a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/api/v1/user/UserExtractController.php

+ 1 - 1
app/controller/api/v1/user/UserExtractController.php

@@ -83,7 +83,7 @@ class UserExtractController
                 if ($range['free_type'] == 1) {
                     $free = bcdiv(bcmul((string)$money_sum, (string)$range['free']), '100', 2);
                 } else {
-                    $free = $range;
+                    $free = $range['free'];
                 }
                 $the_fee = bcdiv(bcmul(bcsub((string)$money_sum, (string)$free, 2), (string)$range['fee']), '100', 2);
                 $the_fee = bcsub((string)$the_fee, (string)$range['dec'], 2);