Skip to content

Commit

Permalink
fix: 更改项目图标接口逻辑调整
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Mar 2, 2020
1 parent e3c7d6f commit c143474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/controllers/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,9 +746,9 @@ class projectController extends baseController {
'extra.logo4project': id,
})
}
if (color != null) data.color = color
if (icon != null) data.icon = icon
if (logo != null) data.logo = logo
data.color = color
data.icon = icon
data.logo = logo
if (!id) {
return (ctx.body = yapi.commons.resReturn(null, 405, '项目id不能为空'))
}
Expand Down

0 comments on commit c143474

Please # to comment.