|
@@ 806-811 (lines=6) @@
|
| 803 |
|
$errors = $this->customerValidation($app, $data); |
| 804 |
|
|
| 805 |
|
foreach ($errors as $error) { |
| 806 |
|
if ($error->count() != 0) { |
| 807 |
|
log_info('非会員お客様情報変更入力チェックエラー'); |
| 808 |
|
$response = new Response(json_encode('NG'), 400); |
| 809 |
|
$response->headers->set('Content-Type', 'application/json'); |
| 810 |
|
return $response; |
| 811 |
|
} |
| 812 |
|
} |
| 813 |
|
|
| 814 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
|
@@ 815-820 (lines=6) @@
|
| 812 |
|
} |
| 813 |
|
|
| 814 |
|
$pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref'])); |
| 815 |
|
if (!$pref) { |
| 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 |
|
$Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']); |
| 823 |
|
if (!$Order) { |