编辑器上传问题bug
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
//配置文件
|
||||
return [
|
||||
|
||||
// 默认输出类型
|
||||
'default_return_type' => 'json',
|
||||
];
|
||||
9
application/api/controller/User.php
Normal file
9
application/api/controller/User.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
namespace app\api\controller;
|
||||
|
||||
class User extends \app\common\controller\Api{
|
||||
|
||||
public function login() {
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user