mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改商品
This commit is contained in:
parent
fa46967111
commit
511df78a13
@ -11,5 +11,13 @@ use think\admin\Model;
|
||||
*/
|
||||
class ShopGoods extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* 格式化创建时间
|
||||
* @param string $value
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateAtAttr(string $value): string
|
||||
{
|
||||
return format_datetime($value);
|
||||
}
|
||||
}
|
@ -75,4 +75,14 @@ class ShopGoodsCate extends Model
|
||||
foreach ($cates as &$cate) unset($cate['parent']);
|
||||
return array_values($cates);
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化创建时间
|
||||
* @param string $value
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateAtAttr(string $value): string
|
||||
{
|
||||
return format_datetime($value);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user