解决打包插件解压报错的问题 (#1630)

https://github.com/flipped-aurora/gin-vue-admin/issues/1628
This commit is contained in:
haimait
2024-01-18 13:11:54 +08:00
committed by piexlMax(奇淼
parent 5ca47a91a6
commit 746af37899
2 changed files with 23 additions and 66 deletions

View File

@@ -304,8 +304,7 @@ func (autoApi *AutoCodeApi) InstallPlugin(c *gin.Context) {
// @Router /autoCode/pubPlug [get]
func (autoApi *AutoCodeApi) PubPlug(c *gin.Context) {
plugName := c.Query("plugName")
snake := strings.ToLower(plugName)
zipPath, err := autoCodeService.PubPlug(snake)
zipPath, err := autoCodeService.PubPlug(plugName)
if err != nil {
global.GVA_LOG.Error("打包失败!", zap.Error(err))
response.FailWithMessage("打包失败"+err.Error(), c)