mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
ComposerUpdate
This commit is contained in:
parent
e1b06ff9bc
commit
ec8d5b602d
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -401,12 +401,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "b2d566a6bdd14c91b84b4d4351f67d2c6048dfef"
|
||||
"reference": "c76003332a6c0277186507429baca6dfea6f9d15"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/b2d566a6bdd14c91b84b4d4351f67d2c6048dfef",
|
||||
"reference": "b2d566a6bdd14c91b84b4d4351f67d2c6048dfef",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/c76003332a6c0277186507429baca6dfea6f9d15",
|
||||
"reference": "c76003332a6c0277186507429baca6dfea6f9d15",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -426,7 +426,7 @@
|
||||
"qiniu/php-sdk": "^7.2",
|
||||
"topthink/framework": "5.1.*"
|
||||
},
|
||||
"time": "2019-11-25T10:37:39+00:00",
|
||||
"time": "2019-11-25T10:59:35+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
@ -86,14 +86,17 @@ abstract class Controller extends \stdClass
|
||||
|
||||
/**
|
||||
* Controller destruct
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->request = request();
|
||||
$action = $this->request->action();
|
||||
$method = strtolower($this->request->method());
|
||||
if (method_exists($this, $callback = "_{$action}_{$method}")) {
|
||||
call_user_func_array([$this, $callback], $this->request->route());
|
||||
$method = "_{$this->request->action()}_{$this->request->method()}";
|
||||
if (method_exists($this, $method)) try {
|
||||
call_user_func_array([$this, $method], $this->request->route());
|
||||
} catch (HttpResponseException $exception) {
|
||||
$exception->getResponse()->send();
|
||||
} catch (\Exception $exception) {
|
||||
throw $exception;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,32 +33,6 @@ class SystemService extends Service
|
||||
*/
|
||||
protected $data = [];
|
||||
|
||||
/**
|
||||
* 设置配置数据
|
||||
* @param string $name 配置名称
|
||||
* @param string $value 配置内容
|
||||
* @return static
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function set($name, $value = '')
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取配置数据
|
||||
* @param string $name
|
||||
* @return array|mixed|string
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
*/
|
||||
public function get($name)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据增量保存
|
||||
@ -67,9 +41,11 @@ class SystemService extends Service
|
||||
* @param string $key 条件主键限制
|
||||
* @param array $where 其它的where条件
|
||||
* @return bool|int|mixed|string
|
||||
* @throws \think\Exception
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @throws \think\exception\DbException
|
||||
* @throws \think\exception\PDOException
|
||||
*/
|
||||
public function save($dbQuery, $data, $key = 'id', $where = [])
|
||||
{
|
||||
@ -92,9 +68,11 @@ class SystemService extends Service
|
||||
* @param string $name 数据名称
|
||||
* @param mixed $value 数据内容
|
||||
* @return boolean
|
||||
* @throws \think\Exception
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @throws \think\exception\DbException
|
||||
* @throws \think\exception\PDOException
|
||||
*/
|
||||
public function setData($name, $value)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user