From eb48ada68af34f8bac9c9d61d6ecec2faab62d26 Mon Sep 17 00:00:00 2001 From: yxh Date: Thu, 26 Aug 2021 15:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=B3=A8=E5=86=8C=E6=A8=A1=E5=9D=97=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=EF=BC=8C=E6=8F=92=E4=BB=B6=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/system/service/tools_gen_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/system/service/tools_gen_table.go b/app/system/service/tools_gen_table.go index 71eece3..8e3c164 100644 --- a/app/system/service/tools_gen_table.go +++ b/app/system/service/tools_gen_table.go @@ -730,7 +730,7 @@ func (s *toolsGenTable) genModuleRouter(curDir, moduleName, packageName string) routerFilePath = strings.Join([]string{curDir, "/plugins/router/", gstr.CaseSnake(moduleName), ".go"}, "") } code := fmt.Sprintf(`package router%simport _ "%s/router"`, "\n", packageName) - s.createFile(routerFilePath, code, false) + err = s.createFile(routerFilePath, code, false) } return }