up api
This commit is contained in:
@@ -10,5 +10,19 @@ namespace app\index\controller\api;
|
||||
|
||||
class Upload extends Base
|
||||
{
|
||||
public function initialize($auth = false)
|
||||
{
|
||||
parent::initialize($auth);
|
||||
// 是否允许游客上传
|
||||
if ($this->config['allowed_tourist_upload']) {
|
||||
$this->token && $this->auth($this->token);
|
||||
} else {
|
||||
$this->auth($this->token);
|
||||
}
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user