mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
Merge branch 'master' of https://github.com/YMFE/yapi
This commit is contained in:
commit
1edee0192c
@ -65,6 +65,7 @@ YApi 是<strong>高效</strong>、<strong>易用</strong>、<strong>功能强大
|
||||
* [使用 alpine 版 docker 镜像快速部署 yapi](https://www.jianshu.com/p/a97d2efb23c5)
|
||||
* [docker-yapi](https://github.com/Ryan-Miao/docker-yapi)
|
||||
* [docker-compose一键部署yapi](https://github.com/jinfeijie/yapi)
|
||||
* [docker-YApi: 更易用的 YApi 镜像](https://github.com/fjc0k/docker-YApi)
|
||||
|
||||
### YApi 一些工具
|
||||
* [mysql服务http工具,可配合做自动化测试](https://github.com/hellosean1025/http-mysql-server)
|
||||
|
@ -22,6 +22,11 @@ class syncController extends baseController {
|
||||
if (!projectId) {
|
||||
return (ctx.body = yapi.commons.resReturn(null, 408, '缺少项目Id'));
|
||||
}
|
||||
|
||||
if ((await this.checkAuth(projectId, 'project', 'edit')) !== true) {
|
||||
return (ctx.body = yapi.commons.resReturn(null, 405, '没有权限'));
|
||||
}
|
||||
|
||||
let result;
|
||||
if (requestBody.id) {
|
||||
result = await this.syncModel.up(requestBody);
|
||||
|
Loading…
Reference in New Issue
Block a user