Your Name 3 년 전
부모
커밋
b711391fa8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
     {
-        $where['write_code'] = Dever::rand(6, 1);
+        $where['write_code'] = Dever::rand(6, 0);
         $state = Dever::db('active/code')->one($where);
         if (!$state) {
             return $where['write_code'];