拼接的是不是不对
已在网页授权的地方配置了,为啥还报redirect_uri参数错误?[图片][图片]
2020-04-28商家需要先订阅
怎么利用wx.requestSubscribeMessage 发送到商家手机上?怎么利用wx.requestSubscribeMessage 方法把订单推送到商家的小程序上
2020-04-28在小程序后台可以申请
申请长期订阅消息?陪审员小程序,随机选择、通知人民陪审员参与庭审。AppID(小程序ID)wxb30746cce30fb887 通知内容如下: 案号:2020湘0723民初001号案由:民间借贷纠纷庭审时间:2019年10月21日15:00庭审地点:第一审判庭备注:请张三、李四两陪审员准时参加。蒲城县人民法院使用场景: 法院工作人员摇号,确定具体的陪审员,然后通知陪审员参审! 被通知的陪审员是被动的,陪审员主动触发第一次,以后允许系统自动派发。。。。。。每名陪审员一年需要陪审30-50件案件,系统将自动派发30-50次,需要用到长期订阅消息。 望官方批准,谢谢。
2020-04-27json数据保存成文件的话,存成json文件比较好 --↓↓👍如果觉得有帮助的话请点个【有用】吧!
读取txt文件里面的内容会乱码https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html { "button":[ { "name":"发货管理", "sub_button":[ { "type":"view", "name":"注册", "url":"http://sups.hangzhoutianqin.com/weixin/regist.aspx" }, { "type":"view", "name":"待发货单", "url":"http://sups.hangzhoutianqin.com/weixin/sendmas.aspx" }, { "type":"view", "name":"已发货", "url":"http://sups.hangzhoutianqin.com/weixin/sendlist.aspx" }, { "type":"view", "name":"已验收", "url":"http://sups.hangzhoutianqin.com/weixin/reclist.aspx" }, { "type":"view", "name":"已复核", "url":"http://sups.hangzhoutianqin.com/weixin/examlist.aspx" }] }, { "name":"我的信息", "sub_button":[ { "type":"view", "name":"采购合同", "url":"http://sups.hangzhoutianqin.com/weixin/contract.aspx" }, { "type":"view", "name":"项目报表", "url":"http://sups.hangzhoutianqin.com/weixin/itemscontent.aspx" }, { "type":"view", "name":"采购信息", "url":"http://sups.hangzhoutianqin.com/weixin/message.aspx" }, { "type":"view", "name":"我的新材料", "url":"http://sups.hangzhoutianqin.com/weixin/mynewmaterial.aspx" }, { "type":"view", "name":"我的资料", "url":"http://sups.hangzhoutianqin.com/weixin/mys.aspx" }] }, { "name":"天勤动态", "sub_button":[ { "type":"view", "name":"新中标项目", "url":"http://sups.hangzhoutianqin.com/weixin/newitems.aspx" }, { "type":"view", "name":"大宗采购单", "url":"http://sups.hangzhoutianqin.com/weixin/sendmas.aspx" }] }] } 经过读取,变成 {\"button\":[\r\n {\t\r\n \"name\":\"鍙戣揣绠$悊\",\r\n \"sub_button\":[\r\n {\t\r\n \"type\":\"view\",\r\n \"name\":\"娉ㄥ唽\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/regist.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"寰呭彂璐у崟\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/sendmas.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"宸插彂璐?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/sendlist.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"宸查獙鏀?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/reclist.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"宸插鏍?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/examlist.aspx\"\r\n }]\r\n },\r\n {\t\r\n \"name\":\"鎴戠殑淇℃伅\",\r\n \"sub_button\":[\r\n {\t\r\n \"type\":\"view\",\r\n \"name\":\"閲囪喘鍚堝悓\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/contract.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"椤圭洰鎶ヨ〃\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/itemscontent.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"閲囪喘淇℃伅\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/message.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"鎴戠殑鏂版潗鏂?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/mynewmaterial.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"鎴戠殑璧勬枡\",\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/mys.aspx\"\r\n }]\r\n },\r\n {\r\n \"name\":\"澶╁嫟鍔ㄦ€?,\r\n \"sub_button\":[\r\n {\t\r\n \"type\":\"view\",\r\n \"name\":\"鏂颁腑鏍囬」鐩?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/newitems.aspx\"\r\n }, {\t\r\n \"type\":\"view\",\r\n \"name\":\"澶у畻閲囪喘鍗?,\r\n \"url\":\"http://sups.hangzhoutianqin.com/weixin/sendmas.aspx\"\r\n }]\r\n }]\r\n }\r\n
2020-04-27https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/database/command/Command.exists.html exists 检查字段是否存在 return db.collection('todos').where({ title: _.exists(true) }).get().then(res => { return res }).catch(err => { console.log(err) throw new Error(err) }) 返回存在title字段的记录 return db.collection('todos').where({ title: _.exists(false) }).get().then(res => { return res }).catch(err => { console.log(err) throw new Error(err) }) 返回不存在title字段的记录 跑一下试试 --↓↓👍如果觉得有帮助的话请点个【有用】吧!
云开发中字段操作符exists如果参数不写代表什么?云开发中如果这个操作符不传参数的话获取的是哪一种,在本地测试了不写的话不报错,然后也没有返回记录,不懂这个什么意思,纠结。。 exports.main = async (event, context) => { return await db.collection('todos').where({ title: _.exists() }).get() }
2020-04-27本地调试ws://192.168.8.197:2020,顺便检查一下防火墙2020端口有没有开放 --↓↓👍如果觉得有帮助的话请点个【有用】吧!
微信小程序和局域网内主机通信无法通信成功是什么问题?暂时没有服务器,想用本地主机进行websocket测试,但是连接不成功, [图片] [图片] 开发者服务器 wss 接口地址应该怎么填写啊? 后面的端口号随意设置吗?
2020-04-27有真机调试吧 开发工具调试会跳fail
小程序连接蓝牙搜索到的设备名字都是空的?搜索出来的所有蓝牙设备名字都是空的,而且用官方参考的实例搜索出来的蓝牙名字也是空的 这官方实例 https://developers.weixin.qq.com/s/pQU51zmz7a3K [图片]
2020-04-27input组件是不是写了focus属性,有的话去掉
调用picker组件时, 如何隐藏软键盘 ?调用picker组件, 手机自动显示软键盘, 如何进隐藏 ? 使用wx.hideKeyboard() api, 无效
2020-04-27[图片] 用这个
预览的时候怎么看后台报错?我在用手机预览的时候调试器没有任何变化,很多输出语句都没输出就执行了,调试器没有一点反应,我都不知道自己的程序在哪里出错了,请问预览的时候要在哪里看输出语句或者在哪里看报错,我的小程序出现问题了,在电脑的模拟器上可以获取到的数据用手机预览的时候就获取不到了,我也不知道在哪里出错了
2020-04-27wx47a8fc3ac5a55eb6 --↓↓👍如果觉得有帮助的话请点个【有用】吧!
开发工具云开发无法打开,是咋回事?“检查环境” 发生了错误: Error: Base resp abnormal, {"ret":-1,"errmsg":""} APPID:wx47a8fc3ac5a55eb6
2020-04-26