Db::raw无法正常使用

浏览:533 发布日期:2022/03/25
5.0.0 - 严重 - 未处理
object of class think\db\Raw could not be converted to string
--------------------------------------------------------------------
\vendor\topthink\think-orm\src\db\Raw.php 补上下面代码后正常
--------------------------------------------------------------------

public function __toString()
{
return (string) $this->value;
}
评论(
后面还有条评论,点击查看>>