mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 12:23:06 +08:00
增加开启和关闭站点终端命令
This commit is contained in:
parent
8fdf9a77df
commit
0f673dff3f
@ -11,6 +11,7 @@
|
||||
- 补充遗漏的面授模型章节相关迁移文件
|
||||
- 修正上次字段整理导致的字段不存在问题
|
||||
- 修正上次整理发布字段导致的添加单页和帮助错误
|
||||
- 增加开启/关闭站点终端命令
|
||||
|
||||
### [v1.3.0](https://gitee.com/koogua/course-tencent-cloud/releases/v1.3.0)(2021-03-26)
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
### 系统功能
|
||||
|
||||
实现了点播、直播、专栏、面授、会员、群组、积分商城、秒杀等,全功能无阉割,100%真开源在线教育解决方案。具体功能我也不想写一大堆,自己体验吧!
|
||||
实现了点播、直播、专栏、面授、会员、群组、积分、秒杀等,全功能无阉割,100%真开源在线教育解决方案。
|
||||
|
||||
友情提示:
|
||||
|
||||
@ -62,11 +62,11 @@ Tips: 请用手机注册一个新账号,用户中心 -> 关注订阅,扫码
|
||||
- 即时通讯:[workerman 3.5.22](https://workerman.net)
|
||||
- 基础依赖:[php7.3](https://php.net), [mysql5.7](https://mysql.com), [redis5.0](https://redis.io)
|
||||
|
||||
### 安装指南
|
||||
### 项目文档
|
||||
|
||||
- [运行环境搭建](https://gitee.com/koogua/course-tencent-cloud-docker)
|
||||
- [运行环境搭建](https://gitee.com/koogua/course-tencent-cloud/wikis)
|
||||
- [系统服务配置](https://gitee.com/koogua/course-tencent-cloud/wikis)
|
||||
- [客户终端配置](https://gitee.com/koogua/course-tencent-cloud-app)
|
||||
- [客户终端配置](https://gitee.com/koogua/course-tencent-cloud/wikis)
|
||||
|
||||
### 意见反馈
|
||||
|
||||
|
@ -24,7 +24,7 @@ class MaintainTask extends Task
|
||||
|
||||
$util->rebuild($section);
|
||||
|
||||
echo 'rebuild index course cache success' . PHP_EOL;
|
||||
echo '------ rebuild index course cache success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ class MaintainTask extends Task
|
||||
|
||||
$account->update();
|
||||
|
||||
echo 'reset password success' . PHP_EOL;
|
||||
echo '------ reset password success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -69,7 +69,7 @@ class MaintainTask extends Task
|
||||
|
||||
$service->updateSettings('captcha', ['enabled' => 0]);
|
||||
|
||||
echo 'disable captcha success' . PHP_EOL;
|
||||
echo '------ disable captcha success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -83,7 +83,35 @@ class MaintainTask extends Task
|
||||
|
||||
$service->updateSettings('captcha', ['enabled' => 1]);
|
||||
|
||||
echo 'enable captcha success' . PHP_EOL;
|
||||
echo '------ enable captcha success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭站点
|
||||
*
|
||||
* @command: php console.php maintain disable_site
|
||||
*/
|
||||
public function disableSiteAction()
|
||||
{
|
||||
$service = new SettingService();
|
||||
|
||||
$service->updateSettings('site', ['status' => 'closed']);
|
||||
|
||||
echo '------ disable site success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启站点
|
||||
*
|
||||
* @command: php console.php maintain enable_site
|
||||
*/
|
||||
public function enableSiteAction()
|
||||
{
|
||||
$service = new SettingService();
|
||||
|
||||
$service->updateSettings('site', ['status' => 'normal']);
|
||||
|
||||
echo '------ enable site success ------' . PHP_EOL;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input class="layui-input" type="text" name="title" placeholder="名称模糊匹配">
|
||||
<input class="layui-input" type="text" name="name" placeholder="名称模糊匹配">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
|
@ -7,6 +7,13 @@
|
||||
{% set pager_url = url({'for':'home.article.pager'}, params) %}
|
||||
{% set hot_author_url = url({'for':'home.article.hot_authors'}) %}
|
||||
|
||||
<div class="breadcrumb">
|
||||
<span class="layui-breadcrumb">
|
||||
<a href="/">首页</a>
|
||||
<a><cite>专栏</cite></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="layout-main clearfix">
|
||||
<div class="layout-content">
|
||||
<div class="content-wrap wrap">
|
||||
|
@ -19,6 +19,10 @@ class Tag extends Repository
|
||||
|
||||
$builder->where('1 = 1');
|
||||
|
||||
if (!empty($where['id'])) {
|
||||
$builder->andWhere('id = :id:', ['id' => $where['id']]);
|
||||
}
|
||||
|
||||
if (!empty($where['name'])) {
|
||||
$builder->andWhere('name LIKE :name:', ['name' => "%{$where['name']}%"]);
|
||||
}
|
||||
@ -32,7 +36,7 @@ class Tag extends Repository
|
||||
}
|
||||
|
||||
switch ($sort) {
|
||||
case 'follow':
|
||||
case 'popular':
|
||||
$orderBy = 'follow_count DESC';
|
||||
break;
|
||||
case 'priority':
|
||||
|
Loading…
x
Reference in New Issue
Block a user