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()