https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html
其他手机都正常,唯独有一个人的iphone 6p有下边的异常
try{
wx.request({
...
});
}catch(err){
log.error(JSON.stringify({
err: err,
name: err.name,
number: err.number,
description: err.description,
fileName: err.fileName,
stack: err.stack,
}));
}
输出如下信息:
{"err":{"line":1637,"column":198353,"sourceURL":"https://usr/app-service.js"},"stack":"t@https://usr/app-service.js:1637:198353\nr@https://usr/app-service.js:1637:198515\nrequest@https://usr/app-service.js:1637:199998\ngetPolicyList@https://usr/app-service.js:1669:2339\ngetPolicyList@[native code]\nonLoad@https://usr/app-service.js:1669:1821\npt@https://usr/app-service.js:1637:150587\n__call_hook@https://usr/app-service.js:1637:196492\nonLoad@https://usr/app-service.js:1637:14946\nhttps://lib/WASubContext.js:2:1789051\n[native code]\n__callPageLifeTime__@https://lib/WASubContext.js:2:1788796\njt@https://lib/WASubContext.js:2:1804631\nMt@https://lib/WASubContext.js:2:1806562\nhttps://lib/WASubContext.js:2:1816973\nhttps://lib/WASubContext.js:2:1779703\nemit@https://lib/WASubContext.js:2:482345\nemit@https://lib/WASubContext.js:2:449246\nhttps://lib/WASubContext.js:2:540113\nemit@https://lib/WASubContext.js:2:482444\nemit@https://lib/WASubContext.js:2:449246\nhttps://lib/WASubContext.js:2:530569\nhttps://lib/WASubContext.js:2:475049\nhttps://lib/WAServiceMainContext.js:2:245650\nA@https://lib/WAServiceMainContext.js:2:77983\nglobal code"}
我这个是什么情况呢
发现是开发工具输出的信息和手机上输出的不一致,后来加了个message就好了