1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

!57 更新v1.2.4readme

* !56 更新v1.2.4readme
* 更新v1.2.4readme
* !55 优化api请求判断
* 增加通过http头判断是否API请求

(cherry picked from commit ff9f5773728d67358e19adc4da426dc383658ae3)
This commit is contained in:
winzer 2021-01-10 13:21:05 +08:00 committed by xiaochong0302
parent f58a45a981
commit 538dd14230
2 changed files with 6 additions and 2 deletions

View File

@ -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)
### 系统功能

View File

@ -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;
}