发布v2.6.6版本

This commit is contained in:
雨中磐石
2024-10-22 15:45:25 +08:00
parent 502a817f7a
commit ac79e13876
5 changed files with 64 additions and 7 deletions

View File

@@ -279,13 +279,13 @@ abstract class mysql{
return $this->getall($sql);
}
public function getall($sql, $call=null)
public function getall($sql, $call=null, $cans=array())
{
$res=$this->query($sql);
$arr=array();
if($res){
while($row=$this->fetch_array($res)){
if($call != null)$row = $call($row);
if($call != null)$row = $call($row, $cans);
$arr[] = $row;
$this->count++;
}