html52.com
我爱小程序-开发者交流社区

豆瓣API未知错误

问题模块
API和组件

调用豆瓣电影的API接口:

  loadMovie:function(){

    var page =this;

      wx.request({

        url: 'https://api.douban.com/v2/movie/in_theaters',     /////豆瓣API接口地址

        header: {

            'Content-Type': 'application/json'

        },

        success: function(res) {

          var subjects= res.data.subjects;

          page.setData({movies:subjects,hidden:true});

        }

    })

  }

显示

  1. {msg: "Invalid request", code: 999, request: "GET /v2/in_theaters"}

    1. code:999

    2. msg:"Invalid request"

    3. request:"GET /v2/in_theaters"

999 未知错误,有遇到过的吗  访问其他网络都是好的。

网友回复

吴桓:

用聚合数据了

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付