檢查沒問題呀,幫我看看咋回事,一直再報這個錯誤
VM1468:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID fd0afbda-cb00-11e9-a563-525400697544, cloud function service error code -504002, error message console.err is not a function; at cloud.callFunction api;?
2019-08-31
先把console.err()改成console.error(),然后根據錯誤提示就能找到問題了。請檢查API是否正確:
豆瓣API有變化,需要在請求API的url后面跟一個apikey參數:
電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
電影詳情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`
2019-08-30
是console.error()
不是console.err()