1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 04:01:31 +08:00

!57 更新v1.2.4readme

* !56 更新v1.2.4readme
* 更新v1.2.4readme
* !55 优化api请求判断
* 增加通过http头判断是否API请求
This commit is contained in:
winzer 2021-01-10 13:21:05 +08:00 committed by koogua
parent 21de7f4ad7
commit ff9f577372
2 changed files with 6 additions and 2 deletions

View File

@ -7,8 +7,8 @@
酷瓜云课堂依托腾讯云基础服务架构采用C扩展框架Phalcon开发GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。 酷瓜云课堂依托腾讯云基础服务架构采用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=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=stars&message=170&color=blue)
![](https://img.shields.io/static/v1?label=forks&message=63&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) ![](https://img.shields.io/static/v1?label=license&message=GPL-2.0&color=blue)
### 系统功能 ### 系统功能

View File

@ -30,6 +30,10 @@ class Request extends \Phalcon\Http\Request
{ {
$url = $this->get('_url'); $url = $this->get('_url');
if ($this->hasHeader('X-Platform')) {
return true;
}
if (stripos($url, '/api') !== false) { if (stripos($url, '/api') !== false) {
return true; return true;
} }