Exemple #1
0
 protected function init()
 {
     if (Input::post('key', $apikey, 'string') && $apikey == Config::getSecret('api', 'card')) {
         parent::init();
     } else {
         $this->response(-3, 'API key无效');
         exit;
     }
 }