编辑器上传问题bug

This commit is contained in:
2018-03-14 16:41:39 +08:00
parent 15d262b05d
commit 1cfc21dc1e
4 changed files with 370 additions and 0 deletions

View File

@@ -2,4 +2,6 @@
//配置文件
return [
// 默认输出类型
'default_return_type' => 'json',
];

View File

@@ -0,0 +1,9 @@
<?php
namespace app\api\controller;
class User extends \app\common\controller\Api{
public function login() {
return $this->data;
}
}

View File

@@ -41,6 +41,11 @@ class Api {
}
}
public function _empty(){
$this->data['msg'] = '空操作!';
return $this->data;
}
protected function checkAuthor($header){return true;
if (isset($header['authorization']) && $header['authorization']) {
list($appid, $sign) = explode('{|}', $header['authorization']);