mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
@@ -13,7 +13,7 @@ namespace think\controller;
|
|||||||
|
|
||||||
use think\Response;
|
use think\Response;
|
||||||
|
|
||||||
abstract class rest
|
abstract class Rest
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $_method = ''; // 当前请求类型
|
protected $_method = ''; // 当前请求类型
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user