1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-15 21:02:20 +08:00

去除group残留

This commit is contained in:
koogua 2022-09-06 10:58:02 +08:00
parent 1093f52350
commit fbcc721828
9 changed files with 12 additions and 106 deletions

View File

@ -6,10 +6,10 @@
酷瓜云课堂依托腾讯云基础服务架构采用C扩展框架Phalcon开发GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源知识付费系统,开源在线教育系统。 酷瓜云课堂依托腾讯云基础服务架构采用C扩展框架Phalcon开发GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源知识付费系统,开源在线教育系统。
![star](https://koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=star) ![star](https://www.koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=star)
![fork](https://koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=fork) ![fork](https://www.koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=fork)
![license](https://koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=license) ![license](https://www.koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=license)
![release](https://koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=release) ![release](https://www.koogua.com/gitee/badge?user=koogua&project=course-tencent-cloud&type=release)
### 系统功能 ### 系统功能
@ -69,12 +69,12 @@ Tips: 请用手机注册一个新账号,用户中心 -> 关注订阅,扫码
### 项目文档 ### 项目文档
- [运行环境搭建](https://koogua.com/page/wiki) - [运行环境搭建](https://www.koogua.com/page/wiki)
- [系统服务配置](https://koogua.com/page/wiki) - [系统服务配置](https://www.koogua.com/page/wiki)
- [客户终端配置](https://koogua.com/page/wiki) - [客户终端配置](https://www.koogua.com/page/wiki)
### 意见反馈 ### 意见反馈
- [码云平台](https://gitee.com/koogua/course-tencent-cloud/issues) - [码云平台](https://gitee.com/koogua/course-tencent-cloud/issues)
- [官方社区](https://koogua.com/community) - [官方社区](https://www.koogua.com/community)
- QQ交流群: 787363898 - QQ交流群: 787363898

View File

@ -104,9 +104,6 @@ class CleanDemoDataTask extends Task
$courseIndexTask = new CourseIndexTask(); $courseIndexTask = new CourseIndexTask();
$courseIndexTask->cleanAction(); $courseIndexTask->cleanAction();
$groupIndexTask = new GroupIndexTask();
$groupIndexTask->cleanAction();
$questionIndexTask = new QuestionIndexTask(); $questionIndexTask = new QuestionIndexTask();
$questionIndexTask->cleanAction(); $questionIndexTask->cleanAction();

View File

@ -115,7 +115,7 @@ class Index extends Service
public function getReleases() public function getReleases()
{ {
$url = 'https://koogua.com/api/releases'; $url = 'https://www.koogua.com/api/releases';
$client = new Client(); $client = new Client();

View File

@ -1,11 +0,0 @@
{%- macro type_info(value) %}
{% if value == 1 %}
课程
{% elseif value == 2 %}
水吧
{% elseif value == 3 %}
职工
{% else %}
未知
{% endif %}
{%- endmacro %}

View File

@ -1,9 +0,0 @@
{%- macro type_info(value) %}
{% if value == 1 %}
课程
{% elseif value == 2 %}
水吧
{% elseif value == 3 %}
职工
{% endif %}
{%- endmacro %}

View File

@ -14,9 +14,9 @@ class AppInfo
protected $alias = 'CTC'; protected $alias = 'CTC';
protected $link = 'https://koogua.com'; protected $link = 'https://www.koogua.com';
protected $version = '1.5.8'; protected $version = '1.5.9';
public function __get($name) public function __get($name)
{ {

View File

@ -199,16 +199,6 @@ function kg_default_user_avatar_path()
return '/img/default/user_avatar.png'; return '/img/default/user_avatar.png';
} }
/**
* 获取默认群组头像路径
*
* @return string
*/
function kg_default_group_avatar_path()
{
return '/img/default/group_avatar.png';
}
/** /**
* 获取默认课程封面路径 * 获取默认课程封面路径
* *
@ -315,20 +305,6 @@ function kg_cos_user_avatar_url($path, $style = null)
return kg_cos_img_url($path, $style); return kg_cos_img_url($path, $style);
} }
/**
* 获取群组头像URL
*
* @param string $path
* @param string $style
* @return string
*/
function kg_cos_group_avatar_url($path, $style = null)
{
$path = $path ?: kg_default_group_avatar_path();
return kg_cos_img_url($path, $style);
}
/** /**
* 获取课程封面URL * 获取课程封面URL
* *
@ -442,7 +418,7 @@ function kg_clean_html($content)
* @param int $length * @param int $length
* @return string * @return string
*/ */
function kg_parse_summary($content, $length = 100) function kg_parse_summary($content, $length = 150)
{ {
$content = trim(strip_tags($content)); $content = trim(strip_tags($content));

View File

@ -95,15 +95,6 @@ class Notification extends Model
const TYPE_ANSWER_COMMENTED = 227; const TYPE_ANSWER_COMMENTED = 227;
const TYPE_ANSWER_LIKED = 228; const TYPE_ANSWER_LIKED = 228;
/* -------------- 微聊相关 -------------- */
const TYPE_FRIEND_REQUEST = 0; // 好友请求
const TYPE_FRIEND_ACCEPTED = 0; // 好友被接受
const TYPE_FRIEND_REFUSED = 0; // 好友被拒绝
const TYPE_GROUP_REQUEST = 0; // 入群请求
const TYPE_GROUP_ACCEPTED = 0; // 入群被接受
const TYPE_GROUP_REFUSED = 0; // 入群被拒绝
/* -------------- 评论相关 -------------- */ /* -------------- 评论相关 -------------- */
const TYPE_COMMENT_CREATED = 500; const TYPE_COMMENT_CREATED = 500;

View File

@ -1,38 +0,0 @@
<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Services\Sync;
use App\Services\Service;
class GroupIndex extends Service
{
/**
* @var int
*/
protected $lifetime = 86400;
public function addItem($groupId)
{
$redis = $this->getRedis();
$key = $this->getSyncKey();
$redis->sAdd($key, $groupId);
if ($redis->sCard($key) == 1) {
$redis->expire($key, $this->lifetime);
}
}
public function getSyncKey()
{
return 'sync_group_index';
}
}