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:
parent
21de7f4ad7
commit
ff9f577372
@ -7,8 +7,8 @@
|
|||||||
酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。
|
酷瓜云课堂,依托腾讯云基础服务架构,采用C扩展框架Phalcon开发,GPL-2.0开源协议,致力开源网课系统,开源网校系统,开源在线教育系统。
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
### 系统功能
|
### 系统功能
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user