Browse Source

一些功能

Kirin 4 năm trước cách đây
mục cha
commit
b7ed2e8aa1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/models/store/StoreExchange.php

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

@@ -236,7 +236,7 @@ class StoreExchange extends BaseModel
     public static function createCode()
     {
         do {
-            $code = substr(md5(time() . rand(1000, 9999)), 8);
+            $code = 'ticket:' . substr(md5(time() . rand(1000, 9999)), 8);
         } while (self::be(['verify_code' => $code]));
         return $code;
     }