From 5feacf7a49d79239f3ddb2b348c4abe45890bb42 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sun, 10 Jan 2021 11:46:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E8=BF=87http?= =?UTF-8?q?=E5=A4=B4=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6API=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Library/Http/Request.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Library/Http/Request.php b/app/Library/Http/Request.php index d88e43ef..04a1aeed 100644 --- a/app/Library/Http/Request.php +++ b/app/Library/Http/Request.php @@ -30,6 +30,10 @@ class Request extends \Phalcon\Http\Request { $url = $this->get('_url'); + if ($this->hasHeader('X-Platform')) { + return true; + } + if (stripos($url, '/api') !== false) { return true; } -- Gitee From 6d9218b8eead6b11127bec12525c8645a9e7ec82 Mon Sep 17 00:00:00 2001 From: winzer Date: Sun, 10 Jan 2021 13:08:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0v1.2.4readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e0f415a..29951f81 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ 酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。 ![](https://img.shields.io/static/v1?label=release&message=1.2.4&color=blue) -![](https://img.shields.io/static/v1?label=stars&message=168&color=blue) -![](https://img.shields.io/static/v1?label=forks&message=63&color=blue) +![](https://img.shields.io/static/v1?label=stars&message=170&color=blue) +![](https://img.shields.io/static/v1?label=forks&message=66&color=blue) ![](https://img.shields.io/static/v1?label=license&message=GPL-2.0&color=blue) ### 系统功能 -- Gitee From cd2b22c7b8e10448887a8843663aa21f75656106 Mon Sep 17 00:00:00 2001 From: zhangshuren <8552972+zhangshuren@user.noreply.gitee.com> Date: Sun, 10 Jan 2021 14:00:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?!58=20=E6=9B=B4=E6=96=B0v1.2.4changelog=20*?= =?UTF-8?q?=20=E6=9B=B4=E6=96=B0v1.2.4changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5690757b..d5ac9d27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### 优化 - oauth中state参数为安全base64加解码 +- 判断是否api请求逻辑 - findById参数类型不对时抛出异常 - task表增加索引加快数据查找 - markdown内容解析改由后端完成 -- Gitee