|
@@ 736-740 (lines=5) @@
|
| 733 |
|
$errors = $this->customerValidation($app, $data); |
| 734 |
|
|
| 735 |
|
foreach ($errors as $error) { |
| 736 |
|
if ($error->count() != 0) { |
| 737 |
|
$response = new Response(json_encode('NG'), 400); |
| 738 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 739 |
|
return $response; |
| 740 |
|
} |
| 741 |
|
} |
| 742 |
|
|
| 743 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
|
@@ 744-748 (lines=5) @@
|
| 741 |
|
} |
| 742 |
|
|
| 743 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 744 |
|
if (!$pref) { |
| 745 |
|
$response = new Response(json_encode('NG'), 400); |
| 746 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 747 |
|
return $response; |
| 748 |
|
} |
| 749 |
|
|
| 750 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |
| 751 |
|
if (!$Order) { |