











我使用的是thinkphp 8.0.2 版本,在分页查询使用fileld出现提示think\db\Raw could not be converted to string的问题。
解决方案为,在文件vendor\topthink\think-orm\src\db\Raw中重写tostring即可。
public function __toString()
{
return (string) $this->value;
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。