Commit 12fa8964 authored by llewan's avatar llewan

Update README.md

parent e918da4c
......@@ -71,27 +71,18 @@
3.3 进入游戏第一步新增授权操作
var user = sdk.getUser();
if(user){
console.log("用户信息:", user)
sdk.WeChatLogin((d)=>{
}else{
//.调用sdk登录
sdk.WeChatLogin((d)=>{
console.log("用户信息:", d)
console.log("用户信息:", d)
// 登录成功:返回用户信息;
// 登录失败:返回false
});
});
}
3.4 进入游戏第二步在启动页面上初始化sdk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment