application/admin/view/system/configcollect.html
第155行左右增加如下代码
<input type="checkbox" lay-skin="primary" name="collect[vod][uprule][]" value="tv" title="豆瓣ID" {if condition="strpos($config['collect']['vod']['uprule'],'tv') !==false"}checked {/if}>
<input type="checkbox" lay-skin="primary" name="collect[vod][uprule][]" value="av" title="豆瓣评分" {if condition="strpos($config['collect']['vod']['uprule'],'av') !==false"}checked {/if}>
application/common/model/Collect.php
中在545行 注释掉 $v[‘vod_score’] = round($v[‘vod_score_all’] / $v[‘vod_score_num’], 1); 后下增加如下代码
//$v['vod_score'] = round($v['vod_score_all'] / $v['vod_score_num'], 1);
// 模板score评分排序无效,所以将douban_score值赋给score
$v['vod_score'] = $v['vod_douban_score'];
application/common/model/Collect.php
中在第914行左右下面增加如下代码
if (strpos(',' . $config['uprule'], 'tv')!==false && !empty($v['vod_douban_id']) && $v['vod_douban_id']!=$info['vod_douban_id']) {
$update['vod_douban_id'] = $v['vod_douban_id'];
}
if (strpos(',' . $config['uprule'], 'av')!==false && !empty($v['vod_douban_score']) && $v['vod_douban_score']!=$info['vod_douban_id'] && $v['vod_douban_score'] != 0) {
$update['vod_douban_score'] = $v['vod_douban_score'];
}
后台效果:
苹果cms v10 豆瓣评分信息采集api接口源码
下载 douban.php
打开/application/admin/view/vod/info.html 搜索url: ‘
timeout: 5000,
url: '//' + 'api' + '.' + 'mac'+ 'cms' + '.'+ 'la' + '/douban/index/id/' + id,
替换为:
timeout: 10000,
url: 'https://你的域名/api/douban.php?id=' + id,
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容