发布v2.7.1版本
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建签名图片生成的
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user