- 珊瑚安全文本检测崩溃了吗?
wx.serviceMarket.invokeService({ service: 'wxee446d7507c68###', api: 'msgSecCheck', data: { "Action": "TextApproval", "Text": "习¥¥" }, }).then(res => { console.log(res,"res*******") }).catch(err=>{ console.log(err) }) /* x小程序的结果 Error: invokeService:fail inner protocol parse failed (requestId: MLyHFmBju6iGKGepR2h7c0GTJTUfm_0-1olxKrQo8-NzJmtkjSy0B5h0PEfDW1a4OaA) at VM109 WAService.js:2 at VM109 WAService.js:2 at Object.next (VM109 WAService.js:2) at r (VM109 WAService.js:2) */
2020-11-26 - 云开发的http SDK 的 aggregate() 有bug,获取的不是sum的值,而是每一条数据
const cloud = require("@cloudbase/node-sdk"); const axios = require('axios') const APP = '$$$小程序' function save_token(app, access_token) { //保存token app.database().collection("token").where({ app: APP }).update({ access_token: access_token, validity_time: new Date(new Date().getTime() + 7100 * 1000) }) .then(res => { console.log(res) }) .catch(err => { console.log(err) }) } exports.main = async (event, context) => { console.log("event", event) const app = cloud.init({ env: cloud.SYMBOL_CURRENT_ENV, }); //获取配置 let config = await app.database().collection("token").where({ app: APP }).get().then(res => { return res.data[0] }) let access_token = config.access_token //获取token if (new Date(config.validity_time).getTime() < new Date().getTime()) { //过期的access_token,获取token let url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential" + "&appid=" + config.appid + "&secret=" + config.secret await axios.get(url).then(res => { save_token(app, res.data.access_token) access_token = res.data.access_token }) .catch(err => { console.log(err) }) } //更新数据 let url = 'https://api.weixin.qq.com/tcb/databasequery?access_token=' + access_token let data = { "env": config.env, "query": `db.collection("money").aggregate().group({_id:null,total:db.command.aggregate.sum("$realCount")}).end()` } console.log(data) let result = {} await axios.post(url, data).then(res => { console.log(res) result = { message: "ok", code: "res" } }).catch(err => { console.log("err", err) result = { message: "fail", code: -1 } }) return result };
2020-11-03 - 小程序被限制搜索能力,已经解封还是不能搜索!?
你好,因有些用户恶意输入词语,导致被限制搜索能力,现已经新增珊瑚文本检测,新版本已经上线,也申诉成功,小程序搜索能力还是不行。求解封~
2020-10-12 - scroll-view 嵌套后,晓龙660比骁龙845还流畅,845出现卡顿,
- 当前 Bug 的表现(可附上截图) 在scroll-view 增加video组件,没有cover-view 覆盖,滑动比较,结果骁龙660不卡顿(锤子,乐视),骁龙845卡顿(三星S10,小米8)等均不如660。 - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2019-06-10 - 小程序使用qcloudsms_js
用node 调用可以,用小程序调用提示,[图片]
2019-02-08 - 云函数,记录被锁了吗?
- 当前 Bug 的表现(可附上截图) db.collection("trade").doc('XA0kWN7E7L4wi8IZ').get().then(res => { db.collection("trade").doc("XA0kWN7E7L4wi8IZ").update({ data: { member:db.command.push({"openid": "QQ#####333###33339"}) } }).then(res => console.log(res)) }) - 预期表现 然后,就无法运行了,, db.collection("trade").doc("XA0kWN7E7L4wi8IZ").update({ data: { member:db.command.push({"openid": "QQ#####333###33339"}) } }).then(res => console.log(res)) - 复现路径 - 提供一个最简复现 Demo
2018-12-10