diff --git a/CHANGELOG.md b/CHANGELOG.md index 50174e64..f42c92f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +### [v1.2.2](https://gitee.com/koogua/course-tencent-cloud/releases/v1.2.2)(2020-12-24) + +#### 增加 + +- 登录账户微信提醒 +- 购买成功微信提醒 +- 退款成功微信提醒 +- 开始直播微信提醒 +- 咨询回复微信提醒 +- 咨询回复短信提醒 + +#### 修复 + +- 创建章节,关联表数据没有生成 +- 创建群组,没有生成max_im_group_id缓存 +- 课程分类列表没有过滤掉帮助分类的内容 +- 创建角色字段routes MySQL text 类型报错 +- 低品质视频无法播放 +- 后台遗漏的权限 + ### [v1.2.1](https://gitee.com/koogua/course-tencent-cloud/releases/v1.2.1)(2020-12-10) - 增加QQ,微信,微博第三方登录 - 代码优化以及问题修复 diff --git a/README.md b/README.md index a6a49470..3a7b980b 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ 酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。 -![](https://img.shields.io/static/v1?label=release&message=1.2.1&color=blue) -![](https://img.shields.io/static/v1?label=stars&message=112&color=blue) -![](https://img.shields.io/static/v1?label=forks&message=41&color=blue) +![](https://img.shields.io/static/v1?label=release&message=1.2.2&color=blue) +![](https://img.shields.io/static/v1?label=stars&message=136&color=blue) +![](https://img.shields.io/static/v1?label=forks&message=50&color=blue) ![](https://img.shields.io/static/v1?label=license&message=GPL-2.0&color=blue) #### 系统功能 @@ -86,3 +86,5 @@ Tips: 测试支付请用手机号注册一个新账户,以便接收订单通 - 系统定制 - 企业授权 +毫无保留的真开源不容易,如果对你有帮助,请给我们 **STAR** !!! + diff --git a/app/Http/Home/Services/WechatOfficialAccount.php b/app/Http/Home/Services/WechatOfficialAccount.php index 43514f80..ea19fd02 100644 --- a/app/Http/Home/Services/WechatOfficialAccount.php +++ b/app/Http/Home/Services/WechatOfficialAccount.php @@ -6,7 +6,7 @@ use App\Models\WechatSubscribe as WechatSubscribeModel; use App\Repos\WechatSubscribe as WechatSubscribeRepo; use App\Services\Wechat as WechatService; use App\Validators\User as UserValidator; -use EasyWechat\Kernel\Messages\Text as TextMessage; +use EasyWeChat\Kernel\Messages\Text as TextMessage; class WechatOfficialAccount extends Service { @@ -151,14 +151,17 @@ class WechatOfficialAccount extends Service protected function handleClickEvent($message) { + $this->defaultReplyMessage(); } protected function handleViewEvent($message) { + $this->defaultReplyMessage(); } protected function handleLocationEvent($message) { + $this->defaultReplyMessage(); } protected function handleTextReply($message) diff --git a/app/Library/AppInfo.php b/app/Library/AppInfo.php index e0ab2ed3..44cf5878 100644 --- a/app/Library/AppInfo.php +++ b/app/Library/AppInfo.php @@ -11,7 +11,7 @@ class AppInfo protected $link = 'https://gitee.com/koogua'; - protected $version = '1.2.1'; + protected $version = '1.2.2'; public function __get($name) { diff --git a/app/Services/Wechat/Notice/ConsultReply.php b/app/Services/Wechat/Notice/ConsultReply.php index 3fd1202a..f33db7f9 100644 --- a/app/Services/Wechat/Notice/ConsultReply.php +++ b/app/Services/Wechat/Notice/ConsultReply.php @@ -17,10 +17,6 @@ class ConsultReply extends WechatNotice */ public function handle(WechatSubscribeModel $subscribe, array $params) { - $openId = $subscribe->open_id; - - $templateId = $this->getTemplateId($this->templateCode); - $first = sprintf('%s 回复了你的咨询!', $params['replier']['name']); $remark = '如果还有其它疑问,请和我们保持联系哦!'; @@ -31,7 +27,9 @@ class ConsultReply extends WechatNotice 'keyword1' => $params['course']['title'], ]; - return $this->send($openId, $templateId, $params); + $templateId = $this->getTemplateId($this->templateCode); + + return $this->send($subscribe->open_id, $templateId, $params); } }