- getPhoneNumbe button 组件走登陆 5分钟授权但是后端接口提示1005?
微信版本8.0.17 基础库2.21.4 button getphoneNumber登录,页面初始化获取了code然后我操作登录授权是页面初始化10分钟左右,然后提示我1005 <button type="default" :loading="loginLoading" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber" class="login__wx" >授权登录</button> getWxcode () { wx.login({ provider: 'weixin', success: (loginRes) => { this.code = loginRes.code uni.setStorageSync('tyycode', loginRes.code) } }) }, decryptPhoneNumber (e) { if (this.loginLoading) return if (e.detail.errMsg === 'getPhoneNumber:ok') { uni.showLoading({ title: '登录中...' }) const encryptedData = e.detail.encryptedData const iv = e.detail.iv wx.checkSession({ success: (res) => { console.log(res) this.phoneLogin(encryptedData, iv) }, fail: (err) => { uni.login({ provider: 'weixin', success: (res) => { this.code = res.code this.phoneLogin(encryptedData, iv) } }) } }) } }, async phoneLogin (encryptedData, iv) { let _this = this this.loginLoading = true const resData = await api.login.wxLogin({ encryptedData, iv, code: this.code }) const { errcode = '', data = {}, message = '登录失败' } = resData uni.hideLoading() if (errcode === 0) { // "is_need_login": 2 // 是否需要重新登陆:0不需要,1需要 const { api_token = '' } = data uni.showToast({ title: '登录成功', icon: 'success', duration: 1500, success: () => { uni.setStorageSync('api_token', api_token) _this.$store.commit(IS_NEED_LOGIN, 0) _this.loginLoading = false uni.reLaunch({ url: `/pages/index/index` }) } }) } else if (errcode === 1500) { this.$refs['popup'].open() this.getWxcode() this.loginLoading = false } else { this.loginLoading = false this.getWxcode() uni.showToast({ title: message, icon: 'none' }) } }, popupClick () { this.$refs['popup'].close() } },
2022-01-21 - 分包一直加载中?
[图片][图片][图片] 分包卡在 加载中 18点到20点大概接到六七个用户反馈进入小程序一直显示加载中,无法复现,也未查询到错误日志。 没有使用独立分包/使用了分包预加载
2021-07-14 - picker组件兼容性问题?在mac中拉取不起来,下面截图是我在windos中拉起的
[图片]
2021-09-02 - picker组件在Mac端小程序,点击没有反应?
picker组件在Mac端小程序,点击没有反应? 手机上是没有问题的,请问怎么解决 <picker name="city" mode="region" bindchange="bindRegionChange" value="{{patient.city}}" id="city"> <view class="picker"> {{patient.city[0]}},{{patient.city[1]}},{{patient.city[2]}} </view> </picker>
2021-11-22 - 微信小程序在电脑端打开,本地图片不显示(pc微信版本: 3.2.2)
微信小程序在mac电脑端微信(版本3.2.2)打开,本地图片不显示,不管是绝对路径还是相对路径,网络图片正常,但是在微信3.2.0版本,本地图片可以正常显示
2021-12-08 - 小程序request:fail timed out频率有点高
最近出现请求超时等网络错误的概率有点高,可以肯定的确定不是服务器的问题,因为H5版本使用的是相同的API,从来没有遇到过。 request:fail timeout request:fail 请求超时 request:fail 网络连接已中断。 request:fail -7:net::ERR_TIMED_OUT request:fail -105:net::ERR_NAME_NOT_RESOLVED request:fail -118:net::ERR_CONNECTION_TIMED_OUT request:fail net::ERR_SOCKET_NOT_CONNECTED request:fail net::ERR_INVALID_HANDLE request:fail createRequestTaskAsync:fail: jsapi has no permission, event=createRequestTaskAsync, runningState=suspend, permissionMsg=permission ok, detail=network api interrupted in suspend state [图片] 麻烦官方给点解决思路。会不会是小程序框架引起的?我连dns都换了,也没有用。这些请求在后端服务器都没有日志,因为请求根本还没到达服务器。
2021-11-02 - 小程序为何会出现奇怪的告警信息?
告警信息如下: undefined is not an object (evaluating \'window.__DOMTree__.addListener\') https://servicewechat.com/wx4cbd6b7f04b166ac/77/page-frame.html:3:1776082 系统类型:IOS 客户端版本:8.0.13 基础库版本:2.19.5 设备类型: [图片]
2021-09-23 - wx.uploadFile 上传视频连接中止 connection_aborted 是什么原因?
wx.uploadFile 真机上传视频 经常出现连接中止connection_aborted,这是什么原因 [图片]
2021-10-20 - wx.uploadFile contentType漏传boundary导致后端报错?
小程序使用wx.chooseImage上传本地相册图片到后端,后端用的MultipartFile接收,报错:the request was rejected because no multipart boundary was found org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
2021-10-18 - wx.uploadFile 上传文件失败
问题补充 安卓5,6,7 安卓最新版微信(8.0.15)基础库2.20.0 该现象发生率 100% 小程序使用wx.uploadFile上传图片到后端,接口调用成功,后端用的MultipartFile接收时候发现缺少boundary参数,后台报错:the request was rejected because no multipart boundary was found,出现的概率大概1% org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found
2021-10-20