|
@@ 820-824 (lines=5) @@
|
| 817 |
|
$errors = $this->customerValidation($app, $data); |
| 818 |
|
|
| 819 |
|
foreach ($errors as $error) { |
| 820 |
|
if ($error->count() != 0) { |
| 821 |
|
$response = new Response(json_encode('NG'), 400); |
| 822 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 823 |
|
|
| 824 |
|
return $response; |
| 825 |
|
} |
| 826 |
|
} |
| 827 |
|
|
|
@@ 829-833 (lines=5) @@
|
| 826 |
|
} |
| 827 |
|
|
| 828 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 829 |
|
if (!$pref) { |
| 830 |
|
$response = new Response(json_encode('NG'), 400); |
| 831 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 832 |
|
|
| 833 |
|
return $response; |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |