1.x -> 2.x 迁移指南
{
"id": 61736923,
"openid": "ofo380BgVHDSf3gz0QK1DYPGnLxx",
"unionid": "",
"session_expires_at" : 1546588122840
}初始化
登入登出
获取用户信息
Last updated
Was this helpful?
{
"id": 61736923,
"openid": "ofo380BgVHDSf3gz0QK1DYPGnLxx",
"unionid": "",
"session_expires_at" : 1546588122840
}Last updated
Was this helpful?
Was this helpful?
/**
* 下面 1.x 的 init 与 2.x 的 init 调用,效果是相同的
*/
wx.BaaS.init([[client_id]]) // 1.x
// 由 1.x 版本升级到 2.x ,开发者需要配置 autoLogin
wx.BaaS.init([[client_id]], {autoLogin: true}) // 2.x