報錯47001 data format error
出現這個錯誤必須是Body里面的raw才可以,而且access_token參數必須寫在地址后面,不能寫在raw里面,不然也出錯。

/** * 生命周期函數--監聽頁面加載 */ onLoad: function(options) { var that = this //通過分享進來的 接收參數(id)以及跳轉的地址(page) if (options.scene) { //options.scene必須要decodeURIComponent處理才能拿到 let scene = decodeURIComponent(options.scene); //&是我們定義的參數鏈接方式 let id= options.scene.split("&")[0]; let page= options.scene.split('&')[1]; } }
