Quellcode durchsuchen

IRefill goods round precision 4

xiaoyu vor 3 Jahren
Ursprung
Commit
914c1c8734
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      helper/refill/IRefill.php

+ 1 - 1
helper/refill/IRefill.php

@@ -135,7 +135,7 @@ abstract class IRefill
         $key = "{$amount}-{$card_type}";
         if(array_key_exists($key,$maps)) {
             $params = $maps[$key];
-            return [$params['goods_id'], round($params['price'],2)];
+            return [$params['goods_id'], round($params['price'],4)];
         }
         else {
             return [0,0];