From 4f75bf336e59e2461f4ae1485c2407ff3f93260c Mon Sep 17 00:00:00 2001 From: clipperl Date: Fri, 6 Jul 2018 23:12:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BB=BB=E5=8A=A1-?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=A8=A1=E5=BC=8F=E4=B8=AD=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20GLUE=E6=A8=A1=E5=BC=8F(php)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/jobcode/jobcode.index.ftl | 3 + .../template/jobinfo/jobinfo.index.ftl | 7 + .../main/webapp/static/js/jobinfo.index.1.js | 4 +- .../static/plugins/codemirror/mode/php/php.js | 234 ++++++++++++++++++ .../com/xxl/job/core/glue/GlueTypeEnum.java | 1 + 5 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 xxl-job-admin/src/main/webapp/static/plugins/codemirror/mode/php/php.js diff --git a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl index 242be7d3..af219207 100644 --- a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl +++ b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl @@ -127,6 +127,9 @@ <#elseif jobInfo.glueType == "GLUE_PYTHON" > <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/python/python.js" /> <#assign glueTypeIdeMode = "text/x-python" /> + <#elseif jobInfo.glueType == "GLUE_PHP" > + <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/php/php.js" /> + <#assign glueTypeIdeMode = "text/x-php" /> <#elseif jobInfo.glueType == "GLUE_NODEJS" > <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/javascript/javascript.js" /> <#assign glueTypeIdeMode = "text/javascript" /> diff --git a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl index 7c11f698..c6677d48 100644 --- a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl +++ b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl @@ -242,6 +242,13 @@ logging.basicConfig(level=logging.DEBUG) logging.info("脚本文件:" + sys.argv[0]) --> +<#--这里有问题,新建一个运行模式为 php 的任务后,GLUE 中没有下边的 php 代码--> +