<script src="https://imgcache.qq.com/qcloud/tcbjs/1.2.1/tcb.js"></script> <script> var app = tcb.init({ env: 'XXX-XXXX' }) //登录测试 var auth = app.auth() auth.weixinAuthProvider({ appid: 'wxab5d184a5e51XXXX', //微信应用appid scope: 'snsapi_userinfo' //网页授权类型 }).signIn().then(res => { console.log("登录成功",res) app .callFunction({ name: 'pppp', data: { hello: 'world' } }) .then(res => { console.log("云函数",res) // 调用成功 }); // 登录成功 }).catch(err => { console.error(err) // 登录失败 })
新手小白刚试验云开发,请教一下这是什么原因,要怎么解决
相似问题