現在的接口是不是已經不能用了
Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -504002, error message console.err is not a function; at cloud.callFunction api;
??? at new t (WAService.js:22)
??? at o (WAService.js:22)
??? at Object.i [as returnAsFinalCloudSDKError] (WAService.js:22)
??? at Function.success (WAService.js:21)
??? at Object.success (WAService.js:4)
??? at L.<anonymous> (WAService.js:7)
??? at L.emit (WAService.js:8)
??? at Function.<anonymous> (WAService.js:12)
??? at WAService.js:6
??? at e (appservice?t=1561359761381:3870)
2019-06-25
把代碼當中的console.err()改成console.error(),然后根據錯誤就能夠找到問題。
需要在請求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-07-02
我剛剛也一直是這個問題,然后修改了app.js中的env字段為自己云開發環境ID就好了