- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
ipod访问图片,正常它的usertAgent如下
302/2019-05-10T19:05:29+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 350 "https://servicewechat.com/wx117a53fa728d86b8/3/page-frame.html" 116.24.100.37 "Mozilla/5.0 (iPod touch; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.3(0x17000321) NetType/WIFI Language/zh_CN"
但是在使用ax.previewimage显示图片时,它给到服务器的时候是如下,
302/2019-05-10T19:06:40+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 350 "https://servicewechat.com/wx117a53fa728d86b8/3/page-frame.html" 116.24.100.37 "WeChat/7.0.3.33 CFNetwork/978.0.7 Darwin/18.5.0"
请问 CFNetwork 可以被认定是iphone系统?或是建议能否再下个版本加上标志,以方便我们在服务器做一些识别,方便业务处理
同样的技术,与操作步骤,如下是2次小米9的usertagent
302/2019-05-10T18:52:23+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 350 "https://servicewechat.com/wx117a53fa728d86b8/3/page-frame.html" 116.24.100.37 "Mozilla/5.0 (Linux; Android 9; MI 9 Build/PKQ1.181121.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/673 MMWEBSDK/190301 Mobile Safari/537.36 MMWEBID/3113 MicroMessenger/7.0.4.1420(0x27000481) Process/appbrand2 NetType/WIFI Language/zh_CN"
302/2019-05-10T18:52:31+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 349 "https://servicewechat.com/wx117a53fa728d86b8/3/page-frame.html" 116.24.100.37 "Dalvik/2.1.0 (Linux; U; Android 9; MI 9 MIUI/9.5.1)"
下面是开发者工具模拟时,2次请求,同样存在问题
302/2019-05-10T18:51:34+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 350 "https://servicewechat.com/wx117a53fa728d86b8/devtools/page-frame.html" 116.24.100.37 "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 wechatdevtools/1.02.1904091 MicroMessenger/6.5.7 Language/zh_CN webview/8 miniprogram port/62511 token/efdbcb55c03d22a7c2bb75df9dcaea1c"
放大查看时,它使用了原始pc useragent来表示了
302/2019-05-10T18:51:49+08:00 "GET /qidizi/choice_img.php?pc=2019/05/08/guipc.jpg&wap=2019/05/08/guiwap.jpg HTTP/1.1" 349 "-" 116.24.100.37 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"