edit修改日期

This commit is contained in:
admin 2024-02-05 16:29:30 +08:00
parent c4115546ce
commit 831e0581d6

View File

@ -142,7 +142,7 @@ class CommonGoodsEditForm extends Model
$this->model->use_attr = $this->use_attr;
// $this->model->attr_groups = 1; //商品规格组 用不到看表 0 不需要规格组
}
$this->model->date = strtotime($this->date);
$this->model->date = strtotime($this->date."-01-01");
//保存商品基础信息
$res = $this->saveGoodsHub();