Bladeren bron

fixed format

zxiansheng 4 jaren geleden
bovenliggende
commit
7af2e53391
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      backendApi/modules/v1/controllers/FinanceController.php

+ 1 - 1
backendApi/modules/v1/controllers/FinanceController.php

@@ -1168,7 +1168,7 @@ class FinanceController extends BaseController {
         $hash = '';
         $hash = '';
         $max = strlen($seed) - 1;
         $max = strlen($seed) - 1;
         for ($i = 0; $i < $length; $i++) {
         for ($i = 0; $i < $length; $i++) {
-            $hash .= $seed{mt_rand(0, $max)};
+            $hash .= $seed[mt_rand(0, $max)];
         }
         }
         return $hash;
         return $hash;
     }
     }