- wx.uploadFile为什么只能传一张图片
https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/wx.uploadFile.html
2023-11-14 - 微信开发者工具本地 本地调用https接口报错?
例如请求实例 https://www.tst.com 微信开发者工具本地 调用https后台java接口 报下面问题 net::ERR_SSL_PROTOCOL_ERROR
2023-09-25 - 以下代码所实现的功能是什么?是模板消息吗
App({ onLaunch: function () { var that = this setInterval(function(){ // formId收集 if (that.globalData.formIds.length == 0 || that.globalData.openid == null){ return } // 复制一份 var formIdsArr = that.globalData.formIds.concat() that.globalData.formIds = [] wx.request({ url: that.globalData.urlHeader + "/api/v1/formId/collect?userKey=" + that.globalData.openid, method: 'POST', data: formIdsArr, success: function (res) { if (res.statusCode != 200) { // 将复制的formIds放回 for(var i=0; i<formIdsArr.length; i++){ that.globalData.formIds.push(formIdsArr[i]) } } } }) }, 30000) }, collectFormId: function(formId){ if ("the formId is a mock one" != formId){ this.globalData.formIds.push(formId) } }, getUserInfo:function(cb){ var that = this if(this.globalData.userInfo){ typeof cb == "function" && cb(this.globalData.userInfo) }else{ //调用登录接口 wx.login({ success: function (loginRet) { wx.request({ url: that.globalData.urlHeader + "/api/v1/user/get/" + loginRet.code, method: 'GET', success: function(res){ that.globalData.openid = res.data.openid // 清理formId wx.request({ url: that.globalData.urlHeader + "/api/v1/formId/fresh?userKey=" + res.data.openid, method: 'GET', success: function (res) { } }) } }) wx.getUserInfo({ success: function (res) { that.globalData.userInfo = res.userInfo typeof cb == "function" && cb(that.globalData.userInfo) } }) } }) } }, globalData:{ formIds: [], isCleaned: false, userInfo:null, openid: "", urlHeader: "https://www.small-contract.cn/small-contract" } })
2021-08-28 - 向大家请教一个报错?
辛苦大家,请问发生以下问题要怎么解决啊 GET https://www.small-contract.cn/small-contract/api/v1/hook/count/relme?userKey=undefined 404 (Not Found) b @ VM8 asdebug.js:1 createRequestTask @ VM8 asdebug.js:1 invoke @ VM8 asdebug.js:1 invoke @ VM16 WAService.js:2 i @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 w @ VM16 WAService.js:2 L @ VM16 WAService.js:2 M @ VM16 WAService.js:2 c @ VM16 WAService.js:2 N @ VM16 WAService.js:2 A @ VM16 WAService.js:2 createRequestTask @ VM16 WAService.js:2 execute @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 t.<computed> @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 c @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 value @ apihook.js?t=wechat&…5975633e6ba6470ac:1 getMyTaskNum @ todo.js? [sm]:98 (anonymous) @ todo.js? [sm]:13 u @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2 (anonymous) @ VM16 WAService.js:2
2021-08-28