diff --git a/README.md b/README.md index 8e45f66a..fc674653 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,15 @@ ## 酷瓜云课堂 +![酷瓜云课堂](https://upload-images.jianshu.io/upload_images/326350-dd52d4e6ad576989.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) + #### 项目介绍 -酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展PHP框架Phalcon开发,致力开源网课系统,开源网校系统,开源在线教育系统。 +酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。 + +![](https://img.shields.io/static/v1?label=release&message=1.2.0&color=blue) +![](https://img.shields.io/static/v1?label=stars&message=101&color=blue) +![](https://img.shields.io/static/v1?label=forks&message=40&color=blue) +![](https://img.shields.io/static/v1?label=license&message=GPL-2.0&color=blue) #### 系统功能 @@ -14,7 +21,9 @@ - 课程数据来源于网络(无实质内容),切莫购买 - 管理后台已禁止数据提交,私密配置已过滤 -演示帐号:100015@163.com / 123456 (前后台通用) +演示帐号:**13507083515 / 123456** (前后台通用) + +桌面端演示: - [前台演示](https://ctc.koogua.com) - [后台演示](https://ctc.koogua.com/admin) @@ -23,6 +32,14 @@ ![移动端扫码演示](https://upload-images.jianshu.io/upload_images/326350-83444e0bbe14db9f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) +支付流程演示: + +- [MySQL提升课程全面讲解MySQL架构设计(0.01元)](https://ctc.koogua.com/order/confirm?item_id=1390&item_type=1) +- [Nginx入门到实践Nginx中间件(0.01元)](https://ctc.koogua.com/order/confirm?item_id=1286&item_type=1) +- [数据库与中间件的基础必修课(0.02元)](https://ctc.koogua.com/order/confirm?item_id=80&item_type=2) + +Tips: 测试支付请用手机号注册一个新账户,以便接收订单通知,以及避免课程无法购买 + #### 项目组件 - 后台框架:[phalcon 3.4.5](https://phalcon.io) @@ -45,8 +62,7 @@ #### 意见反馈 - [在线反馈](https://gitee.com/koogua/course-tencent-cloud/issues)(推荐) -- QQ邮箱: 76632555@qq.com -- QQ群组: 787363898 +- QQ交流群: 787363898 #### 通过这个项目能学到什么? diff --git a/app/Http/Admin/Views/setting/storage.volt b/app/Http/Admin/Views/setting/storage.volt index 34ab1e62..9b1d2d6e 100644 --- a/app/Http/Admin/Views/setting/storage.volt +++ b/app/Http/Admin/Views/setting/storage.volt @@ -55,6 +55,10 @@ cover_270 mageMogr2/thumbnail/270x/interlace/0 + + content_800 + mageMogr2/thumbnail/800x/interlace/0 + slide_1100 imageMogr2/thumbnail/1100x/interlace/0 diff --git a/app/Http/Api/Services/Account.php b/app/Http/Api/Services/Account.php index 96d09ce6..baf537f8 100644 --- a/app/Http/Api/Services/Account.php +++ b/app/Http/Api/Services/Account.php @@ -50,10 +50,6 @@ class Account extends Service $user = $validator->checkUserLogin($post['account'], $post['password']); - //$validator = new CaptchaValidator(); - - //$validator->checkCode($post['ticket'], $post['rand']); - return $this->auth->saveAuthInfo($user); } diff --git a/app/Http/Home/Controllers/PublicController.php b/app/Http/Home/Controllers/PublicController.php index 63eb1e37..21e28b1e 100644 --- a/app/Http/Home/Controllers/PublicController.php +++ b/app/Http/Home/Controllers/PublicController.php @@ -10,7 +10,6 @@ use App\Services\Pay\Wxpay as WxpayService; use App\Services\Storage as StorageService; use App\Traits\Response as ResponseTrait; use App\Traits\Security as SecurityTrait; -use Phalcon\Text; use PHPQRCode\QRcode; class PublicController extends \Phalcon\Mvc\Controller @@ -44,31 +43,6 @@ class PublicController extends \Phalcon\Mvc\Controller } } - /** - * @Get("/img/{id:[0-9]+}", name="home.img") - */ - public function imageAction($id) - { - $repo = new UploadRepo(); - - $file = $repo->findById($id); - - if ($file && Text::startsWith($file->mime, 'image')) { - - $service = new StorageService(); - - $location = $service->getImageUrl($file->path); - - $this->response->redirect($location); - - } else { - - $this->response->setStatusCode(404); - - return $this->response; - } - } - /** * @Get("/qrcode", name="home.qrcode") */ diff --git a/app/Http/Home/Controllers/UploadController.php b/app/Http/Home/Controllers/UploadController.php index e7877cf0..351f25cb 100644 --- a/app/Http/Home/Controllers/UploadController.php +++ b/app/Http/Home/Controllers/UploadController.php @@ -1,9 +1,9 @@ getAuthUser(); + + $validator = new AppValidator(); + + $validator->checkAuthUser($authUser->id); + } + /** * @Post("/avatar/img", name="home.upload.avatar_img") */ diff --git a/app/Http/Home/Views/course/show_teacher.volt b/app/Http/Home/Views/course/show_teacher.volt index 9a6ed5cd..e6e7a5b3 100644 --- a/app/Http/Home/Views/course/show_teacher.volt +++ b/app/Http/Home/Views/course/show_teacher.volt @@ -8,7 +8,7 @@ {% set teacher.title = teacher.title ? teacher.title : '小小教书匠' %}