发布v2.6.4版本

This commit is contained in:
雨中磐石
2024-07-31 12:54:55 +08:00
parent 3048af398c
commit c75c1e7251
20 changed files with 403 additions and 193 deletions

View File

@@ -94,16 +94,23 @@ class flowClassAction extends Action
$num = strtolower($cans['num']);
$cobj= c('check');
if(!$cobj->iszgen($tab))return '表名格式不对';
$bobg = preg_replace("/[a-zA-Z0-9_]/",'', $tab);
if($bobg)return '表名禁用:'.$bobg.'';
if($cobj->isnumber($num))return '编号不能为数字';
if(strlen($num)<4)return '编号至少要4位';
if($cobj->isincn($num))return '编号不能包含中文';
if(contain($num,'-'))return '编号不能有-';
$bobg = preg_replace("/[a-zA-Z0-9_]/",'', $num);
if($bobg)return '模块编号禁用:'.$bobg.'';
if($cans['isflow']>0 && isempt($cans['sericnum'])) return '有流程必须有写编号规则,请参考其他模块填写';
$rows['num']= $this->rock->xssrepstr($num);
$rows['name']= $name;
if(!isempt($tabs)){
if($cobj->isincn($tabs))return '多行子表名不能包含中文';
$bobg = preg_replace("/[a-zA-Z0-9_,]/",'', $tabs);
if($bobg)return '子表名禁用:'.$bobg.'';
$tabsa = explode(',', $tabs);
$namea = explode(',', $names);
foreach($tabsa as $k1=>$tabsas){