微信小程序 如何獲取openId

微信小程序 如何獲取openId 1.小程序調用wx.login() 獲取 臨時登錄憑證code ,並回傳到開發者服務器上。 (臨時登錄憑證code只能使用一次) 2.開發者服務器以code換取 用戶唯一標識openid 和 會話密鑰session_key。 前端小程序代碼 後臺代碼 微信接口: https://api.weixin.qq.com/sns/jscode2session?appid=
相關文章
相關標籤/搜索