master
wangxinglong 2022-06-13 09:25:40 +08:00
parent e7af582431
commit 9de6b7edd4
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}