diff --git a/plugin/think-plugs-wechat/src/model/WechatAuto.php b/plugin/think-plugs-wechat/src/model/WechatAuto.php index 555a80ed7..a053589fb 100644 --- a/plugin/think-plugs-wechat/src/model/WechatAuto.php +++ b/plugin/think-plugs-wechat/src/model/WechatAuto.php @@ -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); } diff --git a/plugin/think-plugs-wechat/src/model/WechatKeys.php b/plugin/think-plugs-wechat/src/model/WechatKeys.php index 00f450744..6a41d7738 100644 --- a/plugin/think-plugs-wechat/src/model/WechatKeys.php +++ b/plugin/think-plugs-wechat/src/model/WechatKeys.php @@ -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); }