From 5feacf7a49d79239f3ddb2b348c4abe45890bb42 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sun, 10 Jan 2021 11:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E8=BF=87http?= =?UTF-8?q?=E5=A4=B4=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6API=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Library/Http/Request.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Library/Http/Request.php b/app/Library/Http/Request.php index d88e43ef..04a1aeed 100644 --- a/app/Library/Http/Request.php +++ b/app/Library/Http/Request.php @@ -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; }