Merge pull request #106 from pwf0112/master

patchQuery方法BUG
This commit is contained in:
Haotong Lin
2015-12-19 23:42:26 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ namespace think\controller;
use think\Response; use think\Response;
abstract class rest abstract class Rest
{ {
protected $_method = ''; // 当前请求类型 protected $_method = ''; // 当前请求类型

View File

@@ -73,6 +73,7 @@ trait Query
$this->commit(); $this->commit();
} catch (\think\exception $e) { } catch (\think\exception $e) {
$this->rollback(); $this->rollback();
return false;
} }
return true; return true;
} }