Browse Source

fix error mobile

stanley-king 4 years ago
parent
commit
345d2adbe3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      helper/refill/util.php

+ 1 - 1
helper/refill/util.php

@@ -15,7 +15,7 @@ class util
             "188","187","182","183","184","178","130","131","132","156","155","186","185",
             "188","187","182","183","184","178","130","131","132","156","155","186","185",
             "176","133","153","189","180","181","177"];
             "176","133","153","189","180","181","177"];
 
 
-        $pos = mt_rand(0,count($prefix));
+        $pos = mt_rand(0,count($prefix) - 1);
         $no = "{$prefix[$pos]}" . mt_rand(10000000, 99999999);
         $no = "{$prefix[$pos]}" . mt_rand(10000000, 99999999);
 
 
         return $no;
         return $no;