add codestyle fix for sendVerificationCodeAction
This commit is contained in:
parent
ac8f42a0d1
commit
4a4ff43036
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,7 @@ class Order extends Controller
|
|||
Loader::includeModule('sale');
|
||||
|
||||
$order = \Bitrix\Sale\Order::load($orderId);
|
||||
|
||||
if (!$order) {
|
||||
AddMessage2Log('ОШибка списания бонусов (не удалось получить заказ) по заказу №'.$orderId);
|
||||
return [
|
||||
|
@ -102,6 +103,7 @@ class Order extends Controller
|
|||
} catch (Exception | ArgumentNullException $exception) {
|
||||
AddMessage2Log($exception->getMessage());
|
||||
}
|
||||
|
||||
return [
|
||||
'status' => 'success',
|
||||
'msg' => 'Бонусы успешно списаны',
|
||||
|
|
Loading…
Add table
Reference in a new issue