cocos creator 中怎么调用小游戏云开发的数据库,查询云数据库,插入数据等比如下面这段代码在微信开发者工具能运行,在cocos creator js文件中就报错 missing secretId or secretKey of tencent cloudconst cloud = require('wx-server-sdk')cloud.init()const db = cloud.database()db.collection('score').doc(this.personalHighScoreid).update({data: {score: databus.score},success: res => {console.log( '[数据库] [更新记录] 成功' )},fail: err => {console.error('[数据库] [更新记录] 失败:', err)}})
本文网址:http://www.91bianli.com/weixinxiaochengxu/7249.html