fix: 更新微信模型字段类型处理,兼容高版本ThinkORM

This commit is contained in:
邹景立 2025-03-19 14:22:01 +08:00
parent eadecf8f1a
commit 422f030eb1
2 changed files with 4 additions and 4 deletions

View File

@ -49,10 +49,10 @@ class WechatAuto extends Model
{ {
/** /**
* 格式化创建时间 * 格式化创建时间
* @param string $value * @param mixed $value
* @return string * @return string
*/ */
public function getCreateAtAttr(string $value): string public function getCreateAtAttr($value): string
{ {
return format_datetime($value); return format_datetime($value);
} }

View File

@ -49,10 +49,10 @@ class WechatKeys extends Model
{ {
/** /**
* 格式化创建时间 * 格式化创建时间
* @param string $value * @param mixed $value
* @return string * @return string
*/ */
public function getCreateAtAttr(string $value): string public function getCreateAtAttr($value): string
{ {
return format_datetime($value); return format_datetime($value);
} }