真的哎,我说怎么回事呢, 这样就不行wx:if"{{item.wins==3}} " 永远都是true 必须去掉空格wx:if"{{item.wins==3}}"
开发工具格式化wxml文件,自动给双引号内加空格,坑有点大。- 当前 Bug 的表现(可附上截图) wxml文件中某一处引号不匹配,然后进行代码格式化,此不匹配处后面的所有单引号内都将加上空格, 导致部分wx:if条件判断不对,应该是false的全部变成true了。 - 预期表现 执行格式化,不能在后面的单引号内加上空格。 - 复现路径 无 - 提供一个最简复现 Demo <view wx:if='{{isOk}}''> </view> <view wx:if='{{yesOrno}}'> </view> 执行格式化
2019-12-31这个跟小程序没有一分钱关系。
接口中的图片地址是给PC端使用的, 现在小程序要使用,打算在这个地址中加个_small,是否可以?老师好,我们图片服务器存了2套图片,大图和小图,接口中的图片地址是给PC端使用的(大图), 现在小程序要使用,打算在这个地址中加个_small,小程序再访问这个拼接后的地址是否可以?
2019-12-25我的是改了名字搜索不到,用老名字还能搜索到,但是搜索结果又是新的,尴尬。 id:wx5bf9f9d666a74d5a 顺风车
小程序已上线10多天微信内无法被搜索到。小程序名称:上海民生门诊部 appid:wxbc8aff5fe638e9da [图片]
2019-12-25明白了 谢谢
审核时候能不能提供截图给开发者?你可以说我不合规,但是请提供截图,哪个不合规,小程序里面这么多页面,你一句话不合规,到底哪个页面不合规,也不明确说。不知道测试人员是心情不好么?这个要求过分么?我提供的哪个服务属于未开放服务类目了? [图片]
2019-09-28var openId = event.userInfo.openId; return await db.collection('cr_tag').where({ _openid: openId // 填入当前用户 openid }).orderBy('createTime', 'desc').get()
云开发函数怎么按openid过滤数据?我开发了一个云函数,函数是查询一些数据,但我需要根据当前用户openid来过滤数据,请问如何实现。 我现在在查询时传入openid,使用.where({ "_openid": event.oid }),无法过滤;
2019-09-27我以为我电脑问题呢,原来你也不行。O(∩_∩)O哈哈~。
微信开发者工具的问题- 当前 Bug 的表现 [图片] - 预期表现 正常登录状态 - 复现路径 反复登录不上去 - 提供一个最简复现 Demo
2018-12-17太不稳定了。这个没辙 要不不用 要不就是等。
云开发登录失败- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 打开云开发 - 复现路径 点击 云开发按钮 - 提供一个最简复现 Demo
2018-11-02返回数据结构变了。全挂
云函数测试成功,但页面请求就报错,有大佬知道怎么回事吗?js页面 // 获取职位 getPositionList:function(e){ // 加载提示 wx.showLoading({ title: '正在加载', mask: true, }) var self=this; wx.cloud.callFunction({ name:"getPositionList", data:{ }, }).then(res=>{ console.log(res) self.setData({ positionList:res.result.positionList.data, }) }).catch(err=>{ console.log(err) }) }, 云函数页面 // 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() const db = cloud.database() // 云函数入口函数 exports.main = async(event, context) => { try { let positionList = await db.collection('position').orderBy('time', 'desc').get(); return{ positionList } } catch (err) { console.log(err) } } 错误 [图片]
2018-10-16全军覆没
云开发的返回值有问题,如果代码提交方式有问题还望告知// 云函数入口函数 exports.main = async (event, context) => { let type = event.type let openId = event.userInfo.openId let { data } = await db.collection('posts').where({ _openid: openId }).orderBy('_id', 'desc').get() let promiseArr = data.map(item => db.collection('users').where({ _openid: item._openid }).limit(0).get()) let res = await Promise.all(promiseArr) for (let i = 0; i < res.length; i++) { data[i].userInfo = res[i].data[0].userInfo } return { data } } // 返回值如下 { errMsg: "cloud.callFunction:ok", result: { errorCode: 200, errorMessage: "{"data":[{"_id":"W8RBVJ25dhqgLEN9","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":1,"value":"阿斯蒂芬"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/80a37f7b-ac51-4472-81e9-37ac187b0921.jpg","cloud://test-85938f.c341-test-85938f/post/0f605f0c-6056-4f17-b310-0af8f87f5ecc.jpg"]}],"createdAt":{"$date":1539588436891},"title":"发帖,测试时间","views":12,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W8BxqJ25dhqgIjxO","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/8adc90f6-b66a-4071-86c4-6f7ffc51923b.jpg","cloud://test-85938f.c341-test-85938f/post/4172b680-3ed3-458a-816f-7af344051dd9.jpg"]}],"createdAt":{"$date":1539338664702},"title":"人生得意须尽欢,莫使金樽空对月","views":13,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W8BfQd2AWotkcqHJ","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/0a8435d6-ef3c-48ab-b182-bc32f275da53.jpg","cloud://test-85938f.c341-test-85938f/post/f0da453b-fa73-49b5-bcea-2b46c5a069ca.jpg"]},{"type":1,"value":"明李贽《朋友篇》:“去华(潘去华)友朋之义最笃,故是《纂》(指《闇然堂类纂》)首纂笃友谊。” 清昭梿《啸亭杂录·顾总河》:“﹝顾琮﹞果于友谊,公之督河时,前督完颜伟病于署中,家属已先行,公为之守护汤药,旬日无倦。”邹韬奋《友谊与职权》:“友谊是天地间最宝贵的东西,深挚的友谊是人生"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/e4308ae5-955e-4979-9e70-4ab0c4918b33.jpg"]},{"type":1,"value":"廉颇闻之,肉袒负荆,因宾客至蔺相如门谢罪。曰:“鄙贱之人,不知将军宽之至此也。”卒相与欢,为刎颈之交。"}],"createdAt":{"$date":1539333951629},"title":"友谊以亲密为核心成分,亲密性也就称为衡量友谊程度的一个重要指标,亲密度达到一定程度后即使这份友谊因事淡化,这份美好的记忆也会终生珍藏在“永恒的”回忆中,当再次重逢时它也会由怀旧中寻回,这种情感才能被称为“永恒的”友谊。\n罗杰斯(Rogers,1985)对这种亲密性作了三点概括:\n","views":7,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W8AUQZ25dhqgIUJK","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/bca33b00-2bef-4ff6-9daa-523c009419f6.jpg"]},{"type":1,"value":"😀😁😂😄😅😃😇"}],"createdAt":{"$date":1539314753775},"title":"美女哈哈哈哈","views":1,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W8ATXp25dhqgIUAU","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":1,"value":"跑啊跑"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/28fb55c1-2765-4277-9c90-2b9384c168ad.jpg"]},{"type":1,"value":"开车去浪"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/82eb3c8a-6354-4a23-bd83-2f0951c7583f.jpg","cloud://test-85938f.c341-test-85938f/post/5cac40a0-3c7d-4cda-8206-7495bece4381.jpg"]},{"type":1,"value":"哈哈啊哈哈哈"}],"createdAt":{"$date":1539314526799},"title":"撸啊撸","views":1,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W78dhd2AWotkcAvM","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":1,"value":"啊手动阀手动阀"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/24d4de2a-d8b3-424f-9036-19898c1b6956.jpg","cloud://test-85938f.c341-test-85938f/post/f1b7dfc6-5f83-4a58-82d5-f606af593369.png","cloud://test-85938f.c341-test-85938f/post/f818ac1f-a1e1-4947-8da8-53bb470ec1eb.jpg"]}],"createdAt":{"$date":1539251587635},"title":"我的帖子","views":1,"userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}},{"_id":"W78WSd2AWotkb_oA","_openid":"oMoT64r-dhGxPUUghCP0uXD9Nmgw","content":[{"type":1,"value":"sdf"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/523bbd25-878e-47eb-9b00-a580916ef141.jpg","cloud://test-85938f.c341-test-85938f/post/b7a78de5-9883-4fd6-b9c8-4d210ff113fe.jpg"]},{"type":1,"value":"asdfsssssssssssssss"},{"type":2,"value":["cloud://test-85938f.c341-test-85938f/post/8cfe9457-b3b7-4f9d-ac7f-e52cf81bc1b2.jpg","cloud://test-85938f.c341-test-85938f/post/edbdcbf9-ada5-4054-83d1-1861b4ed82a9.jpg"]}],"createdAt":{"$date":1539294803000},"title":"xin","userInfo":{"avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/dxyAhb1HVjwN8gwBFSauvFbqF0cVJV0Vtw32CZHXDUfrQkYD6lFp5GibnoicBEscDRp3ia4JEicpdT1f0dsicdTUtQQ/132","city":"Shenzhen","country":"China","gender":1,"language":"zh_CN","nickName":"友友✨","province":"Guangdong"}}]}" } }
2018-10-165分钟之前还行的,这个怎么办啊。卧槽,上线的版本都用不了了。
云开发返回的数据突然错误[图片] 从日志里看返回结果没有问题,小程序端打印出来的日志如上图所示,返回状态是ok 200,都没问题,可是返回的数据全都放到了errorMessage中,两三个小时前测试还没问题,突然变成了这样
2018-10-16