This commit is contained in:
2019-06-07 13:50:23 +08:00
parent 790eead97f
commit 8d64a14295
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class Api {
return $this->data;
}
protected function checkAuthor($header){return true;
protected function checkAuthor($header){
if (isset($header['authorization']) && $header['authorization']) {
list($appid, $sign) = explode('{|}', $header['authorization']);
$this->client = db('Client')->where('appid', $appid)->find();