|
@@ 604-608 (lines=5) @@
|
| 601 |
|
$errors = $this->customerValidation($app, $data); |
| 602 |
|
|
| 603 |
|
foreach ($errors as $error) { |
| 604 |
|
if ($error->count() != 0) { |
| 605 |
|
$response = new Response(json_encode('NG'), 500); |
| 606 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 607 |
|
return $response; |
| 608 |
|
} |
| 609 |
|
} |
| 610 |
|
|
| 611 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
|
@@ 612-616 (lines=5) @@
|
| 609 |
|
} |
| 610 |
|
|
| 611 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 612 |
|
if (!$pref) { |
| 613 |
|
$response = new Response(json_encode('NG'), 500); |
| 614 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 615 |
|
return $response; |
| 616 |
|
} |
| 617 |
|
|
| 618 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |
| 619 |
|
if (!$Order) { |