Skip to content

Commit 662b54f

Browse files
committed
Del return same result with Set
1 parent 0fc2b42 commit 662b54f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/.vuepress/styles/index.styl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.page .content,
2+
.page .page-edit,
3+
.page .page-nav {
4+
max-width: 1200px;
5+
padding-left: 3em;
6+
padding-right: 3em;
7+
}
8+
9+
@media (max-width: 959px) {
10+
.page .content,
11+
.page .page-edit,
12+
.page .page-nav {
13+
padding-left: 2em;
14+
padding-right: 2em;
15+
}
16+
}

src/ModelAbstract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ public function del($filter) {
157157
}
158158
}
159159
}
160-
return $this->execute($query);
160+
$result = $this->execute($query);
161+
return intval($result['_affected_rows']);
161162
}
162163
/**
163164
* 添加数据

0 commit comments

Comments
 (0)