|
@@ 842-847 (lines=6) @@
|
| 839 |
|
$errors = $this->customerValidation($app, $data); |
| 840 |
|
|
| 841 |
|
foreach ($errors as $error) { |
| 842 |
|
if ($error->count() != 0) { |
| 843 |
|
log_info('非会員お客様情報変更入力チェックエラー'); |
| 844 |
|
$response = new Response(json_encode('NG'), 400); |
| 845 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 846 |
|
return $response; |
| 847 |
|
} |
| 848 |
|
} |
| 849 |
|
|
| 850 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
|
@@ 851-856 (lines=6) @@
|
| 848 |
|
} |
| 849 |
|
|
| 850 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 851 |
|
if (!$pref) { |
| 852 |
|
log_info('非会員お客様情報変更入力チェックエラー'); |
| 853 |
|
$response = new Response(json_encode('NG'), 400); |
| 854 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 855 |
|
return $response; |
| 856 |
|
} |
| 857 |
|
|
| 858 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |
| 859 |
|
if (!$Order) { |