mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-25 04:07:17 +08:00
commit
a9bf09fc3e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user