先来个错误截图

 

 tp嵌套查询时使用了外部的变量,报错。

 解决方法:

 

 使用use 关键字

posted on 2021-03-02 16:13  Beautytoloveme  阅读(40)  评论(0编辑  收藏  举报