💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
selectBy方法以某字段为条件查询多条数据。 ~~~ $model->selectBy('category',1); // 查询category为1的数据 ~~~ 执行的SQL语句:`select * from table where category=1` 你还可以这样用: ~~~ $model->selectByCategory(5); // 查询category为5的数据 ~~~ 执行的SQL语句:`select * from table where category=5`