|
@@ -47,6 +47,7 @@ class StoreOrderCreateValidate extends CommonValidate
|
|
47
|
public function validateRequest(): array
|
47
|
public function validateRequest(): array
|
|
48
|
{
|
48
|
{
|
|
49
|
$data = $this->request->post();
|
49
|
$data = $this->request->post();
|
|
|
|
50
|
+ if (!isset($data['pick_up_id'])) $data['pick_up_id'] = 0;
|
|
50
|
Log::info('request-api-store-order-create-params:' . json_encode($data));
|
51
|
Log::info('request-api-store-order-create-params:' . json_encode($data));
|
|
51
|
if (!$this->check($data)) {
|
52
|
if (!$this->check($data)) {
|
|
52
|
return ['status' => 'error', 'message' => $this->getError()];
|
53
|
return ['status' => 'error', 'message' => $this->getError()];
|