Browse Source

fix goods amount

stanley-king 4 years ago
parent
commit
3dc9d8ac61
1 changed files with 4 additions and 1 deletions
  1. 4 1
      helper/refill/RefillFactory.php

+ 4 - 1
helper/refill/RefillFactory.php

@@ -99,7 +99,10 @@ class RefillFactory
     private function combine_goods($configs)
     {
         $result = [];
-        foreach ($configs as $cfg) {
+        foreach ($configs as $item)
+        {
+            $cfg = $item['cfg'];
+
             $card_types = $cfg['card_type'] ?? [];
             $amounts = $cfg['amount'] ?? [];