setter
parent
e7af582431
commit
9de6b7edd4
|
@ -317,8 +317,10 @@ class Order extends Base
|
|||
|
||||
if ($this->request->isPost()) {
|
||||
$data = input("item/a",[]);
|
||||
$data["shipped_at"] = empty($data["shipped_at"])?null:$data["shipped_at"];
|
||||
$data["accepted_at"] = empty($data["accepted_at"])?null:$data["accepted_at"];
|
||||
$data["shipped_at"] = empty($data["shipped_at"])?null:$data["shipped_at"];
|
||||
$data["accepted_at"] = empty($data["accepted_at"])?null:$data["accepted_at"];
|
||||
$data["wedding_date"] = empty($data["wedding_date"])?null:$data["wedding_date"];
|
||||
$data["expected_delivery_date"] = empty($data["expected_delivery_date"])?null:$data["expected_delivery_date"];
|
||||
$item->save($data);
|
||||
return $this->json();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue