Kirin %!s(int64=2) %!d(string=hai) anos
pai
achega
5b890847a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
                 if ($range['free_type'] == 1) {
                     $free = bcdiv(bcmul((string)$money_sum, (string)$range['free']), '100', 2);
                     $free = bcdiv(bcmul((string)$money_sum, (string)$range['free']), '100', 2);
                 } else {
                 } else {
-                    $free = $range;
+                    $free = $range['free'];
                 }
                 }
                 $the_fee = bcdiv(bcmul(bcsub((string)$money_sum, (string)$free, 2), (string)$range['fee']), '100', 2);
                 $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);
                 $the_fee = bcsub((string)$the_fee, (string)$range['dec'], 2);