From 25992507a6cc476d74839fc58dd2e0afc6cd7e34 Mon Sep 17 00:00:00 2001 From: shizhendong Date: Mon, 4 Nov 2024 18:04:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=89=E6=96=87=E6=A1=A3=E8=B0=83?= =?UTF-8?q?=E6=95=B4=20git=20update=20=E6=8E=A5=E5=8F=A3=EF=BC=8Ccreate?= =?UTF-8?q?=EF=BC=8Cupdate=20=E5=8A=A8=E4=BD=9C=E5=BF=85=E9=A1=BB=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../geedge/asw/module/app/controller/GitController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/geedge/asw/module/app/controller/GitController.java b/src/main/java/net/geedge/asw/module/app/controller/GitController.java index f331174..55e6be5 100644 --- a/src/main/java/net/geedge/asw/module/app/controller/GitController.java +++ b/src/main/java/net/geedge/asw/module/app/controller/GitController.java @@ -152,10 +152,10 @@ public class GitController { if (T.StrUtil.hasEmpty(action, path)) { return R.error(RCode.PARAM_CANNOT_EMPTY); } -// if (T.StrUtil.equalsAny(action, "create", "update")) { -// String content = T.MapUtil.getStr(file, "content"); -// T.VerifyUtil.is(content).notEmpty(RCode.PARAM_CANNOT_EMPTY); -// } + if (T.StrUtil.equalsAny(action, "create", "update")) { + String content = T.MapUtil.getStr(file, "content"); + T.VerifyUtil.is(content).notEmpty(RCode.PARAM_CANNOT_EMPTY); + } } gitService.updateApplication(workspaceId, branchName, lastCommitId, message, files); return R.ok();