改名
This commit is contained in:
+1
-11
@@ -119,7 +119,7 @@ class Command extends Component
|
|||||||
try {
|
try {
|
||||||
$time = microtime(true);
|
$time = microtime(true);
|
||||||
if ($type === static::EXECUTE) {
|
if ($type === static::EXECUTE) {
|
||||||
$result = $this->insert_or_change();
|
$result = $this->db->getConnect($this->sql)->execute($this->sql,$this->params);
|
||||||
} else {
|
} else {
|
||||||
$result = $this->search($type);
|
$result = $this->search($type);
|
||||||
}
|
}
|
||||||
@@ -156,16 +156,6 @@ class Command extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool|int
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
private function insert_or_change(): bool|int
|
|
||||||
{
|
|
||||||
$pdo = $this->db->getConnect($this->sql);
|
|
||||||
return $pdo->execute($this->sql,$this->params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int|bool|array|string|null
|
* @return int|bool|array|string|null
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
|
|||||||
Reference in New Issue
Block a user