| @@ 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) { |
|
| @@ 310-314 (lines=5) @@ | ||
| 307 | { |
|
| 308 | if ($request->isXmlHttpRequest()) { |
|
| 309 | $Plugin = $app['eccube.repository.plugin']->find($id); |
|
| 310 | if (!$Plugin) { |
|
| 311 | $response = new Response(json_encode('NG'), 400); |
|
| 312 | $response->headers->set('Content-Type', 'application/json'); |
|
| 313 | return $response; |
|
| 314 | } |
|
| 315 | ||
| 316 | $code = $Plugin->getCode(); |
|
| 317 | $readme = $app['config'][$code]['const']['readme']; |
|