频繁出现不发送网络请求
 
                                        
                                    
                                    - 发布:2021-03-20 09:52
- 更新:2021-03-22 10:40
- 阅读:774
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: WIN10
HBuilderX类型: 正式
HBuilderX版本号: 3.0.7
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 华为
手机机型: 华为P20Pro
页面类型: nvue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
                                    
                                         
                                
                                                                                                预期结果:
                                    
                                    
                                        希望系统稳定
                                     
                                
                                                                                                希望系统稳定
实际结果:
                                    
                                    
                                        频繁出现不发送网络请求
                                     
                                
                                                            频繁出现不发送网络请求
bug描述:
在手机有网络情况下,安卓APP频繁出现不发送网络请求,如下图框中图片都无法加载出来
 
                                                                                                                                                                                 
                                                                    
                                                                4***@qq.com (作者)
这是登录的请求
uni.request({
url: that.appLoginUrl,  
                    method: 'GET',  
                    sslVerify:false,  
                    data: that.dealerParam,  
                    header: {  
                        'Accept': 'application/json',  
                        "Content-Type": 'application/x-www-form-urlencoded'  
                    },  
                    success(res){  
                    },  
                    fail(error) {  
                        // 登录失败  
                    }  
                })  这是另一个操作的请求,
wx.request({
url: that.loginLogUrl+"/"+that.failPhone,
method: 'POST',
data: baoxiuParam,
header: {
'Accept': 'application/json',
"Content-Type": 'application/json'
},
success: function (res) {  
      },  
      fail:function(){  
        that.failReson = "您的网络状态不佳,建议您稍后重试,如果仍不能登录请点击左下角重新安装按钮,重新安装登录."  
      },  
      complete: function () {  
       }  
    });  没有发送请求,部分机子,偶尔出现,麻烦各位大神帮忙看看
 
             
             
             
			