...
|
...
|
@@ -355,9 +355,11 @@ class Cart extends Api |
|
|
Db::commit();
|
|
|
} catch (\think\exception\PDOException $e) {
|
|
|
Db::rollback();
|
|
|
$this->error($e->getMessage());
|
|
|
return false;
|
|
|
} catch (\think\Exception $e) {
|
|
|
Db::rollback();
|
|
|
$this->error($e->getMessage());
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
...
|
...
|
|