From 5a979bfa534e73151ce69c28cf83338fb4892845 Mon Sep 17 00:00:00 2001 From: duanyiyi <1401377533@qq.com> Date: Thu, 25 Jan 2018 23:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AFua=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ua-device.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ua-device.js b/lib/ua-device.js index f72fe0c..4de42a0 100755 --- a/lib/ua-device.js +++ b/lib/ua-device.js @@ -652,6 +652,12 @@ module.exports = function (ua) { original: tmpVersion }; } + if (match = /AlipayClient\/([\w.]+)/i.exec(ua)) { + uaData.browser.name = '支付宝'; + uaData.browser.version = { + original: match[1] + }; + } if (match = /UCBrowser\/([\w.]+)/i.exec(ua)) { uaData.browser.name = 'UC Browser'; uaData.browser.version = {