responseError {"config": {"adapter": "<Function: adapter>", "header": {"Content-Type": "application/x-www-form-urlencoded"}, "method": "POST", "validateStatus": "<Function: validateStatus>", "timeout": 30000, "headers": {"Content-Type": "application/json;charset=UTF-8"}, "url": "https://wechatpay.worthtech.net/cashier/getPaymentInfo", "data": {"device_no": "141810001392981"}, "baseURL": "https://wechatpay.worthtech.net/"}, "errno": 600001, "errMsg": "request:fail errcode:10011 cronet_error_code:0 error_msg:network change, cancel all task"}
你好,iOS在网络切换(Wi-Fi切流量)后大概率出现网络连不上的情况,既不会请求成功也不会报错,直到超时。由于很多http请求不是幂等的,因此微信也无法自动重试。
为避免影响用户体验,微信会在网络切换后将当前运行的所有网络任务视作失败。出现这个错误后请开发者自行重试。