diff --git a/application/common/model/Redpacket.php b/application/common/model/Redpacket.php index ec36c83..c12b94d 100644 --- a/application/common/model/Redpacket.php +++ b/application/common/model/Redpacket.php @@ -45,7 +45,7 @@ class Redpacket extends Model public function createRedpacket($data) { Db::startTrans(); - try { +// try { // 验证用户余额 $wallet = Db::name('user_wallet')->where('user_id', $data['user_id'])->find(); @@ -121,11 +121,11 @@ class Redpacket extends Model // return $redpacketId; return V(1, '发红包成功', $redpacketId); - } catch (\Exception $e) { - Db::rollback(); - return V(0, $e); -// throw $e; - } +// } catch (\Exception $e) { +// Db::rollback(); +// return V(0, $e); +//// throw $e; +// } } /**