找回密码
 免费注册

[API分享] 苹果CMS V10 后台一键采集豆瓣API获取资料

[复制链接]
admin 发表于 2024-3-19 20:03:07 | 显示全部楼层 |阅读模式
进入苹果CMS根目录后,找到如下文件 **application\admin\view\vod\info.html**

大约在718行左右,照图修改两处位置即可,同时列出关键代码如下。

01.png

  1. $.ajax({
  2.         type: 'post',
  3.         dataType: "jsonp",
  4.         jsonp: "callback",
  5.         timeout: 5000,
  6.         //url: '//' + 'api' + '.' + 'mac'+ 'cms' + '.'+ 'la' + '/douban/index/id/' + id,
  7.         url: '//api.daicuo.cc/apis/douban/?token=你的密钥&id=' + id,
  8.         error: function(){
  9.             alert("{:lang('request_err')}");
  10.         },
  11.         complete:function(){
  12.             is_load=0;
  13.             that.text("{:lang('search_data')}");
  14.         },
  15.         success:function(r){
  16.             if(r.code!=200){
  17.                 alert(r.msg);
  18.             }
  19.             else{
  20.                 if(r.data.vod_total){
  21.                     $('#vod_total').val(r.data.vod_total);
  22.                 }
  23.                 if(r.data.vod_serial){
  24.                     $('#vod_continu').val(r.data.vod_serial);
  25.                 }
  26.                 if(r.data.vod_isend){
  27.                     $('#vod_isend').val(r.data.vod_isend);
  28.                 }
  29.                 if(r.data.vod_name){
  30.                     $('#vod_name').val(r.data.vod_name);
  31.                 }
  32.                 if(r.data.vod_sub){
  33.                     $('#vod_sub').val(r.data.vod_sub);
  34.                 }
  35.                 if(r.data.vod_pic){
  36.                     $('#vod_pic').val(r.data.vod_pic);
  37.                 }
  38.                 if(r.data.vod_year){
  39.                     $('#vod_year').val(r.data.vod_year);
  40.                 }
  41.                 if(r.data.vod_lang){
  42.                     $('#vod_lang').val(r.data.vod_lang);
  43.                 }
  44.                 if(r.data.vod_area){
  45.                     $('#vod_area').val(r.data.vod_area);
  46.                 }
  47.                 if(r.data.vod_state){
  48.                     $('#vod_state').val(r.data.vod_state);
  49.                 }
  50.                 if(r.data.vod_class){
  51.                     $('#vod_type').val(r.data.vod_class);
  52.                 }
  53.                 if(r.data.vod_tag){
  54.                     $('#vod_tag').val(r.data.vod_tag);
  55.                 }
  56.                 if(r.data.vod_actor){
  57.                     $('#vod_actor').val(r.data.vod_actor);
  58.                 }
  59.                 if(r.data.vod_director){
  60.                     $('#vod_director').val(r.data.vod_director);
  61.                 }
  62.                 if(r.data.vod_pubdate){
  63.                     $('#vod_pubdate').val(r.data.vod_filmtime);
  64.                 }
  65.                 if(r.data.vod_writer){
  66.                     $('#vod_writer').val(r.data.vod_writer);
  67.                 }
  68.                 if(r.data.vod_score){
  69.                     $('#vod_score').val(r.data.vod_score);
  70.                 }
  71.                 if(r.data.vod_score_num){
  72.                     $('#vod_score_num').val(r.data.vod_score_num);
  73.                 }
  74.                 if(r.data.vod_score_all){
  75.                     $('#vod_score_all').val(r.data.vod_score_all);
  76.                 }
  77.                 if(r.data.vod_douban_score){
  78.                     $('#vod_douban_score').val(r.data.vod_douban_score);
  79.                 }
  80.                 if(r.data.vod_duration){
  81.                     $('#vod_duration').val(r.data.vod_duration);
  82.                 }
  83.                 if(r.data.vod_content){
  84.                     ue.setContent(r.data.vod_content);
  85.                 }
  86.                 if(r.data.vod_class){
  87.                     $('#vod_class').val(r.data.vod_class);
  88.                 }
  89.                 if(r.data.vod_reurl) {
  90.                     $('#vod_reurl').val(r.data.vod_reurl);
  91.                 }
  92.                 if(r.data.vod_author) {
  93.                     $('#vod_author').val(r.data.vod_author);
  94.                 }
  95.             }
  96.         }
  97.     });
  98. });
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|信息共享网

GMT+8, 2024-5-15 18:46 , Processed in 0.086320 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表