新增任务运行模式 "GLUE模式(PHP) ",支持php脚本任务;

This commit is contained in:
xuxueli 2018-08-16 21:40:04 +08:00
parent cafd8768de
commit 1edc7ccc50
1 changed files with 11 additions and 2 deletions

View File

@ -245,8 +245,17 @@ logging.info("脚本文件:" + sys.argv[0])
<#--这里有问题新建一个运行模式为 php 的任务后GLUE 中没有下边的 php 代码-->
<textarea class="glueSource_php" style="display:none;" >
<?php
echo "hello php";
echo "\n"
echo "xxl-job: hello php \n";
echo "${I18n.jobinfo_script_location}$argv[0] \n";
echo "${I18n.jobinfo_field_executorparam}$argv[1] \n";
echo "${I18n.jobinfo_shard_index} = $argv[2] \n";
echo "${I18n.jobinfo_shard_total} = $argv[3] \n";
echo "Good bye! \n";
exit(0);
?>
</textarea>
<textarea class="glueSource_nodejs" style="display:none;" >