Skip to content

Commit 9b10944

Browse files
committed
更新 开发文档
1 parent ef31d60 commit 9b10944

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

App/Controller/apiController.php

+2-12
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,8 @@
88
class apiController extends Controller {
99

1010
public function testGet($id){
11-
$table = "demo";
12-
$database = new Database($table);
13-
14-
$database->beginTransaction();
15-
$database->where([ "id" => 1])->update([ "author" => $id ]);
16-
if($id ==1 ){
17-
sleep(10);
18-
}
19-
20-
dump($database->commit());
11+
dump($this->request->getMethod());
2112

22-
dd(Demo::find(1));
2313
}
2414

2515
// ORM 查询类方法演示
@@ -166,7 +156,7 @@ public function transactionGet($id){
166156
if($id ==1 ){
167157
sleep(10);
168158
}
169-
159+
170160
dump($database->commit());
171161
dd(Demo::find(1));
172162
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHP QuickORM 框架开发文档
22

3-
版本:20180828
3+
版本:20180905
44

55
## 简介
66

@@ -23,4 +23,4 @@ PHP QuickORM 框架([php-quickorm/framework](https://github.com/php-quickorm/f
2323
如果您喜欢 PHP QuickORM 框架,请移步 Github 给我们一个 Star :)
2424

2525
---
26-
具体的安装事项与开发文档,请移步 [php-quickorm/framework](https://github.com/php-quickorm/documents)
26+
具体的安装事项与开发文档,请移步 [php-quickorm/documents](https://github.com/php-quickorm/documents)

0 commit comments

Comments
 (0)