mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改文件注释
This commit is contained in:
parent
acdee8cb14
commit
626f6a8a8e
@ -74,8 +74,8 @@ class Fans extends Controller
|
|||||||
*/
|
*/
|
||||||
public function setBlack()
|
public function setBlack()
|
||||||
{
|
{
|
||||||
$this->applyCsrfToken();
|
|
||||||
try {
|
try {
|
||||||
|
$this->applyCsrfToken();
|
||||||
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
||||||
WechatService::WeChatUser()->batchBlackList($openids);
|
WechatService::WeChatUser()->batchBlackList($openids);
|
||||||
Db::name('WechatFans')->whereIn('openid', $openids)->update(['is_black' => '1']);
|
Db::name('WechatFans')->whereIn('openid', $openids)->update(['is_black' => '1']);
|
||||||
@ -94,8 +94,8 @@ class Fans extends Controller
|
|||||||
*/
|
*/
|
||||||
public function delBlack()
|
public function delBlack()
|
||||||
{
|
{
|
||||||
$this->applyCsrfToken();
|
|
||||||
try {
|
try {
|
||||||
|
$this->applyCsrfToken();
|
||||||
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
foreach (array_chunk(explode(',', $this->request->post('openid')), 20) as $openids) {
|
||||||
WechatService::WeChatUser()->batchUnblackList($openids);
|
WechatService::WeChatUser()->batchUnblackList($openids);
|
||||||
Db::name('WechatFans')->whereIn('openid', $openids)->update(['is_black' => '0']);
|
Db::name('WechatFans')->whereIn('openid', $openids)->update(['is_black' => '0']);
|
||||||
@ -129,6 +129,8 @@ class Fans extends Controller
|
|||||||
/**
|
/**
|
||||||
* 删除粉丝信息
|
* 删除粉丝信息
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function remove()
|
public function remove()
|
||||||
{
|
{
|
||||||
|
@ -87,6 +87,11 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 添加关键字
|
* 添加关键字
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
* @throws \think\exception\DbException
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
@ -98,6 +103,11 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 编辑关键字
|
* 编辑关键字
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
* @throws \think\exception\DbException
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function edit()
|
public function edit()
|
||||||
{
|
{
|
||||||
@ -109,6 +119,8 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 删除关键字
|
* 删除关键字
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function remove()
|
public function remove()
|
||||||
{
|
{
|
||||||
@ -119,6 +131,8 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 禁用关键字
|
* 禁用关键字
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function forbid()
|
public function forbid()
|
||||||
{
|
{
|
||||||
@ -129,6 +143,8 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 启用关键字
|
* 启用关键字
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function resume()
|
public function resume()
|
||||||
{
|
{
|
||||||
@ -139,6 +155,11 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 配置关注回复
|
* 配置关注回复
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
* @throws \think\exception\DbException
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function subscribe()
|
public function subscribe()
|
||||||
{
|
{
|
||||||
@ -150,6 +171,11 @@ class Keys extends Controller
|
|||||||
/**
|
/**
|
||||||
* 配置默认回复
|
* 配置默认回复
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
* @throws \think\exception\DbException
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function defaults()
|
public function defaults()
|
||||||
{
|
{
|
||||||
|
@ -47,6 +47,7 @@ class Menu extends Controller
|
|||||||
/**
|
/**
|
||||||
* 微信菜单管理
|
* 微信菜单管理
|
||||||
* @auth true
|
* @auth true
|
||||||
|
* @menu true
|
||||||
* @throws \think\Exception
|
* @throws \think\Exception
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
@ -169,6 +169,8 @@ class News extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除微信图文
|
* 删除微信图文
|
||||||
|
* @throws \think\Exception
|
||||||
|
* @throws \think\exception\PDOException
|
||||||
*/
|
*/
|
||||||
public function remove()
|
public function remove()
|
||||||
{
|
{
|
||||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
require_once __DIR__ . '/composer/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159::getLoader();
|
return ComposerAutoloaderInit0c596a9ad0569c20ea8959390edb3037::getLoader();
|
||||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// autoload_real.php @generated by Composer
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
class ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159
|
class ComposerAutoloaderInit0c596a9ad0569c20ea8959390edb3037
|
||||||
{
|
{
|
||||||
private static $loader;
|
private static $loader;
|
||||||
|
|
||||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159
|
|||||||
return self::$loader;
|
return self::$loader;
|
||||||
}
|
}
|
||||||
|
|
||||||
spl_autoload_register(array('ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159', 'loadClassLoader'), true, true);
|
spl_autoload_register(array('ComposerAutoloaderInit0c596a9ad0569c20ea8959390edb3037', 'loadClassLoader'), true, true);
|
||||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||||
spl_autoload_unregister(array('ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159', 'loadClassLoader'));
|
spl_autoload_unregister(array('ComposerAutoloaderInit0c596a9ad0569c20ea8959390edb3037', 'loadClassLoader'));
|
||||||
|
|
||||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
require_once __DIR__ . '/autoload_static.php';
|
require_once __DIR__ . '/autoload_static.php';
|
||||||
|
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInit5db223320ef8cea4a172beae38ba2159::getInitializer($loader));
|
call_user_func(\Composer\Autoload\ComposerStaticInit0c596a9ad0569c20ea8959390edb3037::getInitializer($loader));
|
||||||
} else {
|
} else {
|
||||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||||
foreach ($map as $namespace => $path) {
|
foreach ($map as $namespace => $path) {
|
||||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit5db223320ef8cea4a172beae38ba2159
|
|||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
$includeFiles = Composer\Autoload\ComposerStaticInit5db223320ef8cea4a172beae38ba2159::$files;
|
$includeFiles = Composer\Autoload\ComposerStaticInit0c596a9ad0569c20ea8959390edb3037::$files;
|
||||||
} else {
|
} else {
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
}
|
}
|
||||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||||
composerRequire5db223320ef8cea4a172beae38ba2159($fileIdentifier, $file);
|
composerRequire0c596a9ad0569c20ea8959390edb3037($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function composerRequire5db223320ef8cea4a172beae38ba2159($fileIdentifier, $file)
|
function composerRequire0c596a9ad0569c20ea8959390edb3037($fileIdentifier, $file)
|
||||||
{
|
{
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
require $file;
|
require $file;
|
||||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
class ComposerStaticInit5db223320ef8cea4a172beae38ba2159
|
class ComposerStaticInit0c596a9ad0569c20ea8959390edb3037
|
||||||
{
|
{
|
||||||
public static $files = array (
|
public static $files = array (
|
||||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||||
@ -347,9 +347,9 @@ class ComposerStaticInit5db223320ef8cea4a172beae38ba2159
|
|||||||
public static function getInitializer(ClassLoader $loader)
|
public static function getInitializer(ClassLoader $loader)
|
||||||
{
|
{
|
||||||
return \Closure::bind(function () use ($loader) {
|
return \Closure::bind(function () use ($loader) {
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInit5db223320ef8cea4a172beae38ba2159::$prefixLengthsPsr4;
|
$loader->prefixLengthsPsr4 = ComposerStaticInit0c596a9ad0569c20ea8959390edb3037::$prefixLengthsPsr4;
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInit5db223320ef8cea4a172beae38ba2159::$prefixDirsPsr4;
|
$loader->prefixDirsPsr4 = ComposerStaticInit0c596a9ad0569c20ea8959390edb3037::$prefixDirsPsr4;
|
||||||
$loader->classMap = ComposerStaticInit5db223320ef8cea4a172beae38ba2159::$classMap;
|
$loader->classMap = ComposerStaticInit0c596a9ad0569c20ea8959390edb3037::$classMap;
|
||||||
|
|
||||||
}, null, ClassLoader::class);
|
}, null, ClassLoader::class);
|
||||||
}
|
}
|
||||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -502,12 +502,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "9c9b21c523851afd100c4122d57940eedc3d1451"
|
"reference": "5ea95e1f9cf0dc6b8f8bc3a39423f59b9e853c6a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/9c9b21c523851afd100c4122d57940eedc3d1451",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/5ea95e1f9cf0dc6b8f8bc3a39423f59b9e853c6a",
|
||||||
"reference": "9c9b21c523851afd100c4122d57940eedc3d1451",
|
"reference": "5ea95e1f9cf0dc6b8f8bc3a39423f59b9e853c6a",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -526,7 +526,7 @@
|
|||||||
"qiniu/php-sdk": "^7.2",
|
"qiniu/php-sdk": "^7.2",
|
||||||
"topthink/framework": "5.1.*"
|
"topthink/framework": "5.1.*"
|
||||||
},
|
},
|
||||||
"time": "2019-08-02T08:24:02+00:00",
|
"time": "2019-08-05T05:46:31+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -264,5 +264,7 @@ Console::addDefaultCommands([
|
|||||||
// 动态加载模块配置
|
// 动态加载模块配置
|
||||||
if (function_exists('think\__include_file')) {
|
if (function_exists('think\__include_file')) {
|
||||||
$root = rtrim(str_replace('\\', '/', env('app_path')), '/');
|
$root = rtrim(str_replace('\\', '/', env('app_path')), '/');
|
||||||
foreach (glob("{$root}/*/sys.php") as $file) \think\__include_file($file);
|
foreach (glob("{$root}/*/sys.php") as $file) {
|
||||||
|
\think\__include_file($file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user