mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正update方法
This commit is contained in:
@@ -2210,7 +2210,7 @@ class Query
|
|||||||
// 执行操作
|
// 执行操作
|
||||||
$result = '' == $sql ? 0 : $this->execute($sql, $bind);
|
$result = '' == $sql ? 0 : $this->execute($sql, $bind);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
if (isset($where[$pk])) {
|
if (is_string($pk) && isset($where[$pk])) {
|
||||||
$data[$pk] = $where[$pk];
|
$data[$pk] = $where[$pk];
|
||||||
} elseif (is_string($pk) && isset($key) && strpos($key, '|')) {
|
} elseif (is_string($pk) && isset($key) && strpos($key, '|')) {
|
||||||
list($a, $val) = explode('|', $key);
|
list($a, $val) = explode('|', $key);
|
||||||
|
|||||||
Reference in New Issue
Block a user