mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 更新微信模型字段类型处理,兼容高版本ThinkORM
This commit is contained in:
parent
eadecf8f1a
commit
422f030eb1
@ -49,10 +49,10 @@ class WechatAuto extends Model
|
||||
{
|
||||
/**
|
||||
* 格式化创建时间
|
||||
* @param string $value
|
||||
* @param mixed $value
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateAtAttr(string $value): string
|
||||
public function getCreateAtAttr($value): string
|
||||
{
|
||||
return format_datetime($value);
|
||||
}
|
||||
|
||||
@ -49,10 +49,10 @@ class WechatKeys extends Model
|
||||
{
|
||||
/**
|
||||
* 格式化创建时间
|
||||
* @param string $value
|
||||
* @param mixed $value
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateAtAttr(string $value): string
|
||||
public function getCreateAtAttr($value): string
|
||||
{
|
||||
return format_datetime($value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user