谢谢,可以说详细点吗?登上这两个网,完全抓瞎,根本不知道怎么搞
如何删除小程序环境?有两个问题请教大家: 腾讯云天天提醒我有个环境欠费了,在哪里删除环境啊?怎么查询一个小程序使用和关联的所有环境呢?
2022-10-31折腾了一下午,重启了客户端,突然就安装上了,也是见了鬼了
微信小程序安装node-xlsl失败?想把数据存成excel文件,百度了说需要安装node-xlsl,但我这边一直安装失败。安装步骤如下: 1.新建一个node-js云函数excel2 2.在excel2右键点“内建终端打开” [图片] 3.在终端中运行:npm install node-xlsl,报错 PS D:\10-My Doc\06-微信小程序\00-我的小程序\05-自习室0328\cloud\excel2> npm install node-xlsl npm WARN package.json excel2@1.0.0 No description npm WARN package.json excel2@1.0.0 No repository field. npm WARN package.json excel2@1.0.0 No README data npm ERR! Windows_NT 10.0.19041 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-xlsl" npm ERR! node v4.4.3 npm ERR! npm v2.15.1 npm ERR! code E404 npm ERR! 404 Not found : node-xlsl npm ERR! 404 npm ERR! 404 'node-xlsl' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'excel2' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! Please include the following file with any support request: npm ERR! D:\10-My Doc\06-微信小程序\00-我的小程序\05-自习室0328\cloud\excel2\npm-debug.log
2021-07-23@Mr.Zhao 多谢解答,但我改成双引号,己直接报错了: "read": "get("database.adminList.${auth.openid}").isAdmin==true", 我是初学者,很多语法都不懂,还请详细指导一下,谢谢
云数据库安全规则问题?数据库中有两个集合:adminList { "_id":str, "isAdmin":boolean, "managerOfShop":[], "_openid":{openid}, "admin":{openid} } draftUserInfo {"_id":str," _openid":{openid}, "cardNo":str, "isNew":boolean, "nickName":str, "phoneNo":str, "shops":[] } 2.想实现对draftUserInfo的访问规则为:只有集合admin里的管理员(根据isAdmin或者admin字段判断)可读 3.对draftUserInfo设了下面两个安全规则都不生效,读不出数据 { "read": "auth.openid==get('database.adminList.${doc._id}').admin", "write": "doc._openid == auth.openid" } 设下面规则时,还必须加上"==true",否则报错 { "read": "get('database.adminList.${auth.openid}').isAdmin==true", "write": "doc._openid == auth.openid" } 折腾了一天也不知道怎么回事,请各位指点迷津,多谢了 代码片段 db.collection('draftUserInfo').where({ _openid:openid,isNew:true }).get({ success: function(res) { var ui=res.data that.setData({ userInfo:ui })
2021-05-20