1.我在VS 的REST Client可以使用session的功能,但是同樣的API不能在wx 小程序的。wxrequest這個(gè)接口使用。為什么???
例如:
POST https://XXXXXXX.com/api/user/captcha HTTP/1.1
Authorization: Bearer {{accesstoken}}
Content-Type: application/x-www-form-urlencoded
mobile=13543413033
以上在REST Client可以使用作,但是在小程序,不可以使用。wx.request
但是訪問
時(shí),那個(gè)session 是拿不到的。
總是返回null.