Kirin 3 years ago
parent
commit
9084961ca7
1 changed files with 1 additions and 1 deletions
  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()
     {
         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]));
         return $str;
     }