Kirin 3 gadi atpakaļ
vecāks
revīzija
9084961ca7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/models/store/Card.php

+ 1 - 1
app/models/store/Card.php

@@ -95,7 +95,7 @@ class Card extends BaseModel
     public static function createCode()
     public static function createCode()
     {
     {
         do {
         do {
-            $str = date('Y') . '-' . substr(time(), 6, 4) . rand(1000, 9999) . rand(1000, 9999);
+            $str = date('Y') . '-' . substr(time(), 6, 4) . '-' . rand(1000, 9999) . '-' . rand(1000, 9999);
         } while (self::be(['code' => $str]));
         } while (self::be(['code' => $str]));
         return $str;
         return $str;
     }
     }