stanley-king 3 tahun lalu
induk
melakukan
7827007b25
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      helper/refill/policy/mratio_control.php

+ 1 - 1
helper/refill/policy/mratio_control.php

@@ -322,7 +322,7 @@ class mratio_control
                 $prices = $this->getPrice($mchid, $org_quality, $card_type, $spec);
                 $out_price = $prices[$org_quality];
                 $in_price = $prices[$quality] ?? false;
-                if ($in_price === false) {
+                if ($in_price === false || $in_price <= 0) {
                     Log::record("error price",Log::ERR);
                     continue;
                 }