mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-05 13:28:11 +08:00
空格:id、lib、webhooks
This commit is contained in:
parent
c4fe9ed9ba
commit
7287fa2b32
@ -37,7 +37,7 @@ function stop() {
|
||||
if [[ "$pid" != "" ]]; then
|
||||
echo -n "boot ( pid $pid) is running"
|
||||
echo
|
||||
echo -n $"Shutting down boot: "
|
||||
echo -n $"Shutting down boot: wait"
|
||||
kill $(pgrep -f ${Tag}) 2>/dev/null
|
||||
sleep 3
|
||||
pid=$(ps -ef | grep -v 'grep' | egrep $Tag| awk '{printf $2 " "}')
|
||||
|
@ -121,6 +121,10 @@ public class EditProjectController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
// 判断空格
|
||||
if (id.contains(StrUtil.SPACE) || lib.contains(StrUtil.SPACE) || log.contains(StrUtil.SPACE) || token.contains(StrUtil.SPACE)) {
|
||||
return JsonMessage.getString(401, "项目Id、项目Lib、WebHooks不能包含空格");
|
||||
}
|
||||
ProjectInfoModel exits = manageService.getProjectInfo(id);
|
||||
try {
|
||||
UserModel userName = getUser();
|
||||
|
@ -57,6 +57,7 @@ stop()
|
||||
wget "$WebClose"
|
||||
fi
|
||||
#
|
||||
echo -n $"Shutting down boot: wait"
|
||||
kill $(pgrep -f ${Tag}) 2>/dev/null
|
||||
sleep 3
|
||||
pid=`getPid`
|
||||
|
Loading…
Reference in New Issue
Block a user