db('xxx')->where(['status'=>'0'])->limit(1)->order('rand()')->select(); ps:find()无效 转载于:https://www.cnblogs.com/leilei-1/p/8654175.html