From c2b084da8f46e2470d69f26d582084fc51682d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 13 May 2021 09:41:26 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Account.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/api/controller/Account.php b/app/api/controller/Account.php index c1f9dfa..c9db94c 100644 --- a/app/api/controller/Account.php +++ b/app/api/controller/Account.php @@ -6,6 +6,13 @@ use app\api\model\User; class Account { + + public function __construct () + { + if(empty($_GET['apikey'])){ + die; + } + } //通过接口开测试 // /api/account/creeatTest?apikey=1232455165&product=5&package=61&account=test1231&pwd=123 public function createTest()