예제 #1
0
파일: Captcha.php 프로젝트: azhai/CuteLib
 /**
  * 更换phrase
  */
 public function refresh($phrase_size = 0)
 {
     if ($phrase_size) {
         $this->phrase_size = $phrase_size;
     }
     $phrase = Word::randString($this->phrase_size);
     $this->builder->setPhrase($phrase);
     return $this;
 }
예제 #2
0
 public function randString($length = 6)
 {
     $string = Word::randString($length);
     $this->app->writeln($string);
 }
예제 #3
0
파일: cutelib.php 프로젝트: jl9n/CuteLib
 function refresh()
 {
     $AB = Word::randString($this->phrase_size);
     $this->builder->setPhrase($AB);
     return $this;
 }