1、文件上传验证

2、增加图片上传配置
2、接口功能优化
This commit is contained in:
2018-03-23 20:17:32 +08:00
parent 341877cfb8
commit c0b94d30c5
5 changed files with 69 additions and 194 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();