|
@@ -42,9 +42,7 @@ class PaymentOrder extends Controller
|
|
|
if ($ret['code'] !== 0) throw new Exception($ret['msg'], HttpStatus::CUSTOM_ERROR);
|
|
if ($ret['code'] !== 0) throw new Exception($ret['msg'], HttpStatus::CUSTOM_ERROR);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if ($count < 1) {
|
|
|
|
|
- throw new Exception('操作失败', HttpStatus::CUSTOM_ERROR);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if ($count < 1) throw new Exception('操作失败', HttpStatus::CUSTOM_ERROR);
|
|
|
DB::commit();
|
|
DB::commit();
|
|
|
} catch (ValidationException $e) {
|
|
} catch (ValidationException $e) {
|
|
|
DB::rollBack();
|
|
DB::rollBack();
|