1.删除config.json中所有注释,正则匹配 //.*
2.修改config.json中的属性
"tokenSecret": "xxm123321@#",
"requestAuthSecret": "xxm123321@#",
这俩个是传输加密方式
这个下面填上自己的id和token
"mp-weixin": {
"tokenExpiresIn": 259200,
"tokenExpiresThreshold": 86400,
"oauth": {
"weixin": {
"appid": "wxf841f15175075902",
"appsecret": "1d5e138d551ca5d439f5a52e13e70fed"
}
}
},
3.上传云函数(cloudfunctions),右键单击上传,重新打开小程序,在云数据库就能看到user表有数据了(隐式注册)