Kaynağa Gözat

modify format

zxiansheng 4 yıl önce
ebeveyn
işleme
3c6361d80d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      common/models/forms/OrderForm.php

+ 1 - 1
common/models/forms/OrderForm.php

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