mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
修改部分类注释
This commit is contained in:
@@ -66,6 +66,7 @@ class Response
|
|||||||
* @param mixed $data 输出数据
|
* @param mixed $data 输出数据
|
||||||
* @param string $type 输出类型
|
* @param string $type 输出类型
|
||||||
* @param array $options 输出参数
|
* @param array $options 输出参数
|
||||||
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public static function create($data = [], $type = '', $options = [])
|
public static function create($data = [], $type = '', $options = [])
|
||||||
{
|
{
|
||||||
|
|||||||
7
library/think/cache/driver/File.php
vendored
7
library/think/cache/driver/File.php
vendored
@@ -32,7 +32,7 @@ class File
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 架构函数
|
* 架构函数
|
||||||
* @access public
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
public function __construct($options = [])
|
public function __construct($options = [])
|
||||||
{
|
{
|
||||||
@@ -54,10 +54,11 @@ class File
|
|||||||
{
|
{
|
||||||
// 创建项目缓存目录
|
// 创建项目缓存目录
|
||||||
if (!is_dir($this->options['path'])) {
|
if (!is_dir($this->options['path'])) {
|
||||||
if (!mkdir($this->options['path'], 0755, true)) {
|
if (mkdir($this->options['path'], 0755, true)) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
1
library/think/cache/driver/Xcache.php
vendored
1
library/think/cache/driver/Xcache.php
vendored
@@ -30,6 +30,7 @@ class Xcache
|
|||||||
* 架构函数
|
* 架构函数
|
||||||
* @param array $options 缓存参数
|
* @param array $options 缓存参数
|
||||||
* @access public
|
* @access public
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct($options = [])
|
public function __construct($options = [])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ trait Jump
|
|||||||
* @param string $url 跳转的URL地址
|
* @param string $url 跳转的URL地址
|
||||||
* @param mixed $data 返回的数据
|
* @param mixed $data 返回的数据
|
||||||
* @param integer $wait 跳转等待时间
|
* @param integer $wait 跳转等待时间
|
||||||
* @return void
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function success($msg = '', $url = null, $data = '', $wait = 3)
|
public function success($msg = '', $url = null, $data = '', $wait = 3)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace traits\think;
|
namespace traits\think;
|
||||||
|
|
||||||
|
use \think\Exception;
|
||||||
|
|
||||||
trait Instance
|
trait Instance
|
||||||
{
|
{
|
||||||
protected static $instance = null;
|
protected static $instance = null;
|
||||||
@@ -37,7 +39,7 @@ trait Instance
|
|||||||
if (0 === strpos($method, '_') && is_callable([self::$instance, $call])) {
|
if (0 === strpos($method, '_') && is_callable([self::$instance, $call])) {
|
||||||
return call_user_func_array([self::$instance, $call], $params);
|
return call_user_func_array([self::$instance, $call], $params);
|
||||||
} else {
|
} else {
|
||||||
throw new \think\Exception("not exists method:" . $method);
|
throw new Exception("not exists method:" . $method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user