|
|
本帖介绍的API接口修改教程,默认的搜索可以在后台开启搜索主演。
API接口默认只能搜索影片名字,简单修改一下即可同时搜索主演,方便用户搜索演员来找资源。
打开/application/api/controller/Provide.php
找到:
- if (!empty($this->_param['wd'])) {
- $where['vod_name'] = ['like', '%' . $this->_param['wd'] . '%'];
- }
复制代码 替换成:
- if (!empty($this->_param['wd'])) {
- $where['vod_name|vod_actor'] = ['like', '%' . $this->_param['wd'] . '%'];
- }
复制代码
|
|