top-think/think

thinkPHP6.03 查询数据对象转数组bug

Opened this issue · 1 comments

$item = $this->where(['email' => $email])->find();
if (is_object($item)) {
$item = $item->toArray();
}
DateTime::__construct() expects parameter 1 to be string, integer given

把你的时间戳改成datetime试试看