Sfoglia il codice sorgente

添加add_optionset接口错误打印信息

huangyh 6 anni fa
parent
commit
8febdd4843
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      controllers/partial/SystemController.go

+ 1 - 1
controllers/partial/SystemController.go

@@ -2196,7 +2196,7 @@ func System_AddOptionset(c *entitys.CtrlContext) {
 	if err == nil {
 		c.Ctx.JSON(200, sysmodel.SysReturn{200, "", nil})
 	} else {
-		c.Ctx.JSON(500, sysmodel.SysReturn{500, "", nil})
+		c.Ctx.JSON(500, sysmodel.SysReturn{500, err.Error(), nil})
 	}
 }