1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-25 04:07:17 +08:00

!55 优化api请求判断

Merge pull request !55 from winzer/winzer/I2CN05
This commit is contained in:
koogua 2021-01-10 11:50:41 +08:00 committed by Gitee
commit a9bf09fc3e

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