diff --git a/gensql.php b/gensql.php
index 3cdb76a..8aba8bb 100755
--- a/gensql.php
+++ b/gensql.php
@@ -159,7 +159,7 @@ public function randTimestampMysql($input,$groupSize)
* @return array
*/
public function constStr($input,$groupSize){
- return explode('$#$',str_repeat($input.'$#$',$groupSize));
+ return explode(',',str_repeat($input.',',$groupSize));
}
@@ -171,8 +171,8 @@ public function constStr($input,$groupSize){
* @return array
*/
public function constStrList($input,$groupSize){
- $input = !empty($input) ? $input : '百度$#$阿里$#$腾讯';
- return explode('$#$',$input);
+ $input = !empty($input) ? $input : '百度,阿里,腾讯';
+ return explode(',',$input);
}
/**
diff --git a/index.php b/index.php
index d2bd3a9..dcf44aa 100755
--- a/index.php
+++ b/index.php
@@ -5,10 +5,8 @@
-
-
-
-
+
+
@@ -300,7 +298,7 @@ function getHoverContent(method) {
case 'const_str':
return "不解释";
case 'const_str_list':
- return "输入:百度$#$阿里$#$腾讯;配置2条SQL,3值合一组 输出:
百度$#$阿里$#$腾讯
百度$#$阿里$#$腾讯
按照列表中的元素生成,每个元素按顺序出现,输入元素间用特殊符($#$)分隔。
以前是用逗号,但怕内容本身包含逗号
有多个常量列表则并行出现,输出SQL以 min(元素个数) 为一组";
+ return "输入:百度,阿里,腾讯;2条SQL,3值合一组 输出:
百度,阿里,腾讯
百度,阿里,腾讯
按照列表中的元素生成,每个元素按顺序出现,输入元素间用英文逗号分隔。
有多个常量列表则并行出现,输出SQL以 min(元素个数) 为一组";
case 'rand_str':
return '输入:长度 输出:随机字符串,字符集:字母表';
case 'rand_str_list':
@@ -394,7 +392,7 @@ function selectOnChange(obj,params) {
item['method'] = method;
item['value'] = inputValue;
if(method == 'const_str_list'){
- constListSize = Math.min(constListSize,inputValue.split('$#$').length);
+ constListSize = Math.min(constListSize,inputValue.split(',').length);
}
fieldList.push(item);
});
@@ -452,7 +450,7 @@ function getDefaultValueByMethod(methodParams) {
case 'const_str':
return 'Goolge';
case 'const_str_list':
- return '百度$#$阿里$#$腾讯';
+ return '百度,阿里,腾讯';
case 'rand_str':
return '5';
case 'rand_str_list':
diff --git a/index_en.php b/index_en.php
index 2461e6e..5a72030 100644
--- a/index_en.php
+++ b/index_en.php
@@ -5,8 +5,8 @@
-
-
+
+
@@ -293,7 +293,7 @@ function getHoverContent(method) {
case 'const_str':
return "Const";
case 'const_str_list':
- return "Input: Google$#$Facebook$#$Microsoft; Config: SQL line:2; Group with 3 value Output:
Google$#$Facebook$#$Microsoft
Google$#$Facebook$#$Microsoft";
+ return "Input: Google,Facebook,Microsoft; SQL line:2; Group with 3 value Output:
Google,Facebook,Microsoft
Google,Facebook,Microsoft";
case 'rand_str':
return 'Input: Length of string Output: Random String with alphabet';
case 'rand_str_list':
@@ -389,7 +389,7 @@ function selectOnChange(obj,params) {
item['method'] = method;
item['value'] = inputValue;
if(method == 'const_str_list'){
- constListSize = Math.min(constListSize,inputValue.split('$#$').length);
+ constListSize = Math.min(constListSize,inputValue.split(',').length);
}
fieldList.push(item);
});
@@ -446,7 +446,7 @@ function getDefaultValueByMethod(methodParams) {
case 'const_str':
return 'Goolge';
case 'const_str_list':
- return 'Google$#$Facebook$#$Microsoft';
+ return 'Google,Facebook,Microsoft';
case 'rand_str':
return '5';
case 'rand_str_list':