|
@@ 815-820 (lines=6) @@
|
| 812 |
|
$errors = $this->customerValidation($app, $data); |
| 813 |
|
|
| 814 |
|
foreach ($errors as $error) { |
| 815 |
|
if ($error->count() != 0) { |
| 816 |
|
log_info('非会員お客様情報変更入力チェックエラー'); |
| 817 |
|
$response = new Response(json_encode('NG'), 400); |
| 818 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 819 |
|
return $response; |
| 820 |
|
} |
| 821 |
|
} |
| 822 |
|
|
| 823 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
|
@@ 824-829 (lines=6) @@
|
| 821 |
|
} |
| 822 |
|
|
| 823 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 824 |
|
if (!$pref) { |
| 825 |
|
log_info('非会員お客様情報変更入力チェックエラー'); |
| 826 |
|
$response = new Response(json_encode('NG'), 400); |
| 827 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 828 |
|
return $response; |
| 829 |
|
} |
| 830 |
|
|
| 831 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |
| 832 |
|
if (!$Order) { |