SmsModel::InLock PHP Method

InLock() protected method

时间加锁
Author: Medz Seven ([email protected])
protected InLock ( integer $time = null )
$time integer 加锁的时间
    protected function InLock($time = null)
    {
        /* # 判断是否有自定义事件 */
        $time or $time = time() + self::LOCKTIME;
        /* # 兼容格式化时间,转为时间戳 */
        is_numeric($time) or $time = strtotime($time);
        $_SESSION['captcha_lock_' . $this->phone] = time();
    }