From 7c9f67e8bc9c71d775d5de43a6e7e0adfa24d48b Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 21 Jan 2024 10:33:56 +0800 Subject: [PATCH] =?UTF-8?q?edit=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/common/CommonGoodsEditForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/common/CommonGoodsEditForm.php b/models/common/CommonGoodsEditForm.php index a06a2e0..5763bd2 100644 --- a/models/common/CommonGoodsEditForm.php +++ b/models/common/CommonGoodsEditForm.php @@ -135,8 +135,7 @@ class CommonGoodsEditForm extends Model // $this->model->attr_groups = json_encode($this->attrGroups,JSON_UNESCAPED_UNICODE); $this->model->attr_groups = 1; //商品规格组 用不到看表 0 不需要规格组 - $this->model->date = (int)strtotime($this->date . "-01-01"); - + $this->model->date = strtotime($this->date); //保存商品基础信息 $res = $this->saveGoodsHub();