From e7af582431a5b7b7b627396525a9e09dbca6cbaa Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 13 Jun 2022 09:24:12 +0800 Subject: [PATCH] setter --- app/controller/manager/mall/Order.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/manager/mall/Order.php b/app/controller/manager/mall/Order.php index 45fcf6f..4b628d4 100755 --- a/app/controller/manager/mall/Order.php +++ b/app/controller/manager/mall/Order.php @@ -317,6 +317,8 @@ 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"]; $item->save($data); return $this->json(); }