Kirin 3 年之前
父節點
當前提交
9084961ca7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }