发布v2.7.1版本

This commit is contained in:
雨中磐石
2025-12-24 10:03:51 +08:00
parent 69f5376af9
commit 60f759a90c
16 changed files with 230 additions and 40 deletions

View File

@@ -325,6 +325,11 @@ class inputChajian extends Chajian
}
}
//20250722从模块中读取做数据源
if(substr($datanum,0,5)=='rmod:'){
return $this->modestore($datanum);
}
//2021-02-26新增新的数据源,开头
if(substr($datanum,0,1)==','){
return $this->sqlstore($datanum);
@@ -436,6 +441,29 @@ class inputChajian extends Chajian
return $rows;
}
/**
* 模块数据 20250722添加
*/
public function modestore($act)
{
$rows = array();
if(!$act)return $rows;
$acta = explode(',',substr($act,5));
$cana = explode('|',$acta[0]);
$flow = m('flow')->initflow($cana[0]);
$rowd = $flow->getflowrows($this->adminid, $cana[1], -1);
if($rowd)foreach($rowd as $k=>$rs){
$sname = '';
if(isset($cana[4]))$sname = $this->rock->reparr($cana[4], $rs);
$rows[] = array(
'value' => $rs[$cana[3]],
'name' => $this->rock->reparr($cana[2], $rs),
'subname' => $sname
);
}
return $rows;
}
/**
* 创建签名图片生成的
*/

View File

@@ -19,7 +19,12 @@ class mysqliClass extends mysql{
protected function querysql($sql)
{
$roboll = $this->conn->query($sql);
$roboll = false;
try{
$roboll = $this->conn->query($sql);
} catch (mysqli_sql_exception $e) {
//echo "SQL 错误: " . $e->getMessage();
}
if(!$roboll)$this->setError($this->conn->error, $sql);
return $roboll;
}