| @@ 399-404 (lines=6) @@ | ||
| 396 | $errors = $this->customerValidation($app, $data); |
|
| 397 | ||
| 398 | foreach ($errors as $error) { |
|
| 399 | if ($error->count() != 0) { |
|
| 400 | log_info('非会員お客様情報変更入力チェックエラー'); |
|
| 401 | $response = new Response(json_encode('NG'), 400); |
|
| 402 | $response->headers->set('Content-Type', 'application/json'); |
|
| 403 | ||
| 404 | return $response; |
|
| 405 | } |
|
| 406 | } |
|
| 407 | ||
| @@ 409-414 (lines=6) @@ | ||
| 406 | } |
|
| 407 | ||
| 408 | $pref = $this->prefRepository->findOneBy(array('name' => $data['customer_pref'])); |
|
| 409 | if (!$pref) { |
|
| 410 | log_info('非会員お客様情報変更入力チェックエラー'); |
|
| 411 | $response = new Response(json_encode('NG'), 400); |
|
| 412 | $response->headers->set('Content-Type', 'application/json'); |
|
| 413 | ||
| 414 | return $response; |
|
| 415 | } |
|
| 416 | ||
| 417 | $Order = $this->shoppingService->getOrder($this->appConfig['order_processing']); |
|