star7th %!s(int64=8) %!d(string=hai) anos
pai
achega
baf6340c4b
Modificáronse 1 ficheiros con 0 adicións e 33 borrados
  1. 0 33
      server/application/Api/Model/VerifyCodeModel.class.php

+ 0 - 33
server/application/Api/Model/VerifyCodeModel.class.php

@@ -1,33 +0,0 @@
-<?php
-namespace Api\Model;
-use Api\Model\BaseModel;
-/**
- * 
- * @author star7th      
- */
-class VerifyCodeModel  {
-
-    //次数加1
-    public function _ins_times($key){
-        // 初始化缓存
-        S(array('type'=>'File','prefix'=>'think453434d','expire'=>60*60*24));
-        $cache_times = S($key);
-        $cache_times = intval($cache_times) ;
-        $ret = S($key, $cache_times + 1 , 24*60*60);
-        return $ret ;
-    }
-
-    public function _check_times($key , $max_times = 5 ){
-        // 初始化缓存
-        S(array('type'=>'File','prefix'=>'think453434d','expire'=>60*60*24));
-        $cache_times = S($key);
-        $cache_times = intval($cache_times) ;
-        if ($cache_times) {
-            if ($cache_times >= $max_times) {
-                return false;
-            }
-        }
-        return true ;
-    }
-
-}