Your Name 3 gadi atpakaļ
vecāks
revīzija
b711391fa8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      learn/active/src/Home.php

+ 1 - 1
learn/active/src/Home.php

@@ -232,7 +232,7 @@ Class Home extends Core
     #活动核销码
     #活动核销码
     public function getCode()
     public function getCode()
     {
     {
-        $where['write_code'] = Dever::rand(6, 1);
+        $where['write_code'] = Dever::rand(6, 0);
         $state = Dever::db('active/code')->one($where);
         $state = Dever::db('active/code')->one($where);
         if (!$state) {
         if (!$state) {
             return $where['write_code'];
             return $where['write_code'];