YdbOnline.js 29 KB

1
  1. function YDBOBJ() { this.YundabaoUA = navigator.userAgent.toLowerCase(); this.isIos = /(iphone|ipod|ipad);?/i.test(this.YundabaoUA); this.isAndroid = /android/i.test(this.YundabaoUA); this.isWindows = /windows/i.test(this.YundabaoUA) } var ApiFunHandler = function (funName, iArguments, seperator) { if (typeof (seperator) == "undefined") { seperator = "," } var YundabaoUA = navigator.userAgent.toLowerCase(), isIos = /(iphone|ipod|ipad);?/i.test(YundabaoUA), isAndroid = /android/i.test(YundabaoUA), isWindows = /windows/i.test(YundabaoUA); var paraLen = iArguments.length; try { if (paraLen > 0) { var OtherParameters = ""; for (var i = 0; i < paraLen; i++) { OtherParameters += iArguments[i]; if (i < paraLen - 1) { OtherParameters += seperator } } } if (isIos) { var ifr = document.createElement("iframe"); ifr.src = "app9vcom:##//" + funName + "/?" + (funName == "SetRSA2AlipayInfo" ? OtherParameters.replace(/,/g, "[,]") : OtherParameters); ifr.style.width = "0"; ifr.style.height = "0"; document.body.appendChild(ifr); if (null != ifr) { ifr.parentNode.removeChild(ifr) } ifr = null; try { if (OtherParameters != "") { eval("window.webkit.messageHandlers." + funName + ".postMessage('" + (OtherParameters == "" ? "''" : OtherParameters) + "')") } else { eval("window.webkit.messageHandlers." + funName + ".postMessage('')") } } catch (ex) { } } else { if (isAndroid && window.App9vCom) { var androidParas = "", argLength = iArguments.length; for (var i = 0; i < argLength; i++) { androidParas += YDBGetArguments(eval("iArguments[" + i.toString() + "]")) + (argLength > 1 && i < (argLength - 1) ? "," : "") } if (typeof (eval("window.App9vCom." + funName)) != "undefined") { var outV = eval("window.App9vCom." + funName + "(" + androidParas + ")") } else { console.log("no Function:" + funName) } } } } catch (ex) { } }; function EncodeBase64(c) { var b = encodeURI(c); var a = btoa(b); return a } function DecodeBase64(a) { var b = atob(a); var c = decodeURI(b); return c } YDBOBJ.prototype.Alert = function () { alert(this.isWindows) }; function YDBGetArguments(a) { var b = ""; if (typeof a == "string") { b = '"' + a + '"' } else { if (typeof a == "int") { b = a } else { b = a } } return b } YDBOBJ.prototype.SetGlobal = function (k, g, l, h, c, d, a, r, f, e, b) { var o = ""; var q = arguments.length; if (q > 8) { for (var m = 8; m < q; m++) { o += arguments[m]; if (m < q - 1) { o += "," } } } if (this.isIos) { var n = document.createElement("iframe"); n.src = "app9vcom:##//SetGlobal/?" + k + "," + g + "," + encodeURI(l.replace(/,/g, "|")) + "," + encodeURI(h.replace(/,/g, "|")) + "," + r + "," + o; n.style.width = "0"; n.style.height = "0"; document.body.appendChild(n); if (null != n) { n.parentNode.removeChild(n) } n = null; try { window.webkit.messageHandlers.SetGlobal.postMessage(k + "," + g + "," + encodeURI(l.replace(/,/g, "|")) + "," + encodeURI(h.replace(/,/g, "|")) + "," + r + "," + o) } catch (j) { } } else { if (this.isAndroid && window.App9vCom) { var p = window.App9vCom.SetGlobal(k, g, l, h, c, d, a, r, o) } } }; YDBOBJ.prototype.SetMenuBar = function (b) { var a = "SetMenuBar"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetDragRefresh = function (b) { var a = "SetDragRefresh"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetMoreButton = function (b) { var a = "SetMoreButton"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.MenuBarAutoHide = function (b) { var a = "MenuBarAutoHide"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GoBack = function () { var a = "GoBack"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GoTop = function () { var a = "GoTop"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.Scan = function () { var a = "Scan"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetScan = function (a) { var b = "GetScan"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.Share = function (h, b, e, f, a) { if (this.isIos) { h = h.replace(/,/g, ","); b = b.replace(/,/g, ","); var d = document.createElement("iframe"); if (undefined == a) { d.src = "app9vcom:##//Share/?" + encodeURI(h) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) } else { d.src = "app9vcom:##//Share/?" + encodeURI(h) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(a) } d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { if (undefined == a) { window.webkit.messageHandlers.Share.postMessage(encodeURI(h) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f)) } else { window.webkit.messageHandlers.Share.postMessage(encodeURI(h) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(a)) } } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var g; if (undefined == a) { g = window.App9vCom.Share(h, b, e, f) } else { g = window.App9vCom.Share(h, b, e, f, a) } } } }; YDBOBJ.prototype.SingleShare = function (i, b, e, f, h, a) { if (this.isIos) { i = i.replace(/,/g, ","); b = b.replace(/,/g, ","); var d = document.createElement("iframe"); if (undefined == a) { d.src = "app9vcom:##//SingleShare/?" + encodeURI(i) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(h) } else { d.src = "app9vcom:##//SingleShare/?" + encodeURI(i) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(h) + "," + encodeURI(a) } d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { if (undefined == a) { window.webkit.messageHandlers.SingleShare.postMessage(encodeURI(i) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(h)) } else { window.webkit.messageHandlers.SingleShare.postMessage(encodeURI(i) + "," + encodeURI(b) + "," + encodeURI(e) + "," + encodeURI(f) + "," + encodeURI(h) + "," + encodeURI(a)) } } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var g; if (undefined == a) { g = window.App9vCom.SingleShare(i, b, e, f, h) } else { g = window.App9vCom.SingleShare(i, b, e, f, h, a) } } } }; YDBOBJ.prototype.ClearCache = function () { var a = "ClearCache"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SpeechRecognition = function (a) { var b = "SpeechRecognition"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetGPS = function (a) { var b = "GetGPS"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenGPS = function (b) { var a = "OpenGPS"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.CloseGPS = function () { var a = "CloseGPS"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetDeviceInformation = function (a) { var b = "GetDeviceInformation"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.PopUp = function (d, a) { if (d == "" || undefined == d) { d = "0" } if (a == "" || undefined == a) { a = "0" } if (this.isIos) { var c = document.createElement("iframe"); c.src = "app9vcom:##//PopUp/?" + d.replace(/,/g, "|") + "," + a.replace(/,/g, "|"); c.style.width = "0"; c.style.height = "0"; document.body.appendChild(c); if (null != c) { c.parentNode.removeChild(c) } c = null; try { window.webkit.messageHandlers.PopUp.postMessage(d.replace(/,/g, "|") + "," + a.replace(/,/g, "|")) } catch (b) { } } else { if (this.isAndroid && window.App9vCom) { var e = window.App9vCom.PopUp(d, a) } } }; YDBOBJ.prototype.ImageViewState = function (b) { var a = "ImageViewState"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetAlipayInfo = function (g, a, f, d) { if (this.isIos) { var c = document.createElement("iframe"); c.src = "app9vcom:##//SetAlipayInfo/?" + g + "[,]" + a + "[,]" + f + "[,]" + d; c.style.width = "0"; c.style.height = "0"; document.body.appendChild(c); if (null != c) { c.parentNode.removeChild(c) } c = null; try { window.webkit.messageHandlers.SetAlipayInfo.postMessage(g + "[,]" + a + "[,]" + f + "[,]" + d) } catch (b) { } } else { if (this.isAndroid && window.App9vCom) { var e = window.App9vCom.SetAlipayInfo(g, a, f, d) } } }; YDBOBJ.prototype.SetWxpayInfo = function (h, b, g, e, a) { g = g.toString(); if (a == "" || undefined == a) { a = undefined } if (this.isIos) { var d = document.createElement("iframe"); d.src = "app9vcom:##//SetWxpayInfo/?" + h + "[,]" + b + "[,]" + g + "[,]" + e + "[,]" + a; d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { window.webkit.messageHandlers.SetWxpayInfo.postMessage(h + "[,]" + b + "[,]" + g + "[,]" + e + "[,]" + a) } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var f = window.App9vCom.SetWxpayInfo(h, b, g, e, a) } } }; YDBOBJ.prototype.SetWxpaySend = function (a, f, g, e, d, j, i, h, b) { var c = "SetWxpaySend"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.WXLogin = function (c, a) { var b = "WXLogin"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.ShowTopRightMenu = function () { var a = "ShowTopRightMenu"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.UploadImage = function (g, h, j, f, d, b, a, i, e) { var c = "UploadImage"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.SetBgColor = function (a) { var b = "SetBgColor"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.SetReturnButtonMode = function (b) { var a = "SetReturnButtonMode"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetWifiSsid = function (a) { var b = "GetWifiSsid"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.UseTouchID = function (b, e, a, c) { var d = "UseTouchID"; if (this.isAndroid) { d = "UseTouchIDFAS" } ApiFunHandler(d, arguments) }; YDBOBJ.prototype.UseFaceID = function (b, e, a, c) { var d = "UseFaceID"; if (this.isIos) { ApiFunHandler(d, arguments) } }; YDBOBJ.prototype.GetHealthStep = function (a) { var b = "GetHealthStep"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.QQLogin = function (a) { var b = "QQLogin"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenBluetooth = function () { var a = "OpenBluetooth"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.ExitApp = function () { var a = "ExitApp"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.AnimationWay = function (a, c) { if (a == "2" || a == "3") { a = "0" } if (c == "2" || c == "3") { c = "0" } if (a == "0" && c == "1") { c = "0" } if (a == "1" && c == "0") { c = "1" } if (this.isIos) { var d = document.createElement("iframe"); d.src = "app9vcom:##//AnimationWay/?" + a + "," + c; d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { window.webkit.messageHandlers.AnimationWay.postMessage(a + "," + c) } catch (b) { } } else { if (this.isAndroid && window.App9vCom) { var e = window.App9vCom.AnimationWay(a, c) } } }; YDBOBJ.prototype.OpenWithSafari = function (b) { var a = "OpenWithSafari"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.OpenNewWindow = function () { var a = "OpenNewWindow"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetOpenCurrentWindow = function () { var a = "SetOpenCurrentWindow"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetUserRelationForPush = function (c, b) { var a = "PushMsgConfig"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetClientIDOfGetui = function (a) { var b = "GetClientIDOfGetui"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.RongyunLogin = function (e, b, c, d) { var a = "RongyunLogin"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.InitiateChat = function (c, b, d) { var a = "InitiateChat"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SessionList = function () { var a = "SessionList"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.RefreshUserInfo = function (d, b, c) { var a = "RefreshUserInfo"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.CreateDiscussGroup = function (a, d, c) { var b = "CreateDiscussGroup"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenDiscussGroup = function (b, c) { var a = "OpenDiscussGroup"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.AddDiscussGroup = function (b, e, c, d) { var a = "AddDiscussGroup"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.RemoveDiscussGroup = function (b, c) { var a = "RemoveDiscussGroup"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.IntPortraitUri = function (d, b, c) { var a = "IntPortraitUri"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetStatusBarStyle = function (a) { var b = "SetStatusBarStyle"; if (this.isIos) { ApiFunHandler(b, arguments) } }; YDBOBJ.prototype.SetStatusCorlor = function (a) { var b = "SetStatusCorlor"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.isWXAppInstalled = function (b) { var a = "isWXAppInstalled"; if (this.isIos) { ApiFunHandler(a, arguments) } }; YDBOBJ.prototype.IsReloadPreviousPage = function (b) { var a = "IsReloadPreviousPage"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.IsReloadNextPage = function (b) { var a = "IsReloadNextPage"; if (this.isIos) { ApiFunHandler(a, arguments) } }; YDBOBJ.prototype.DismissVC = function () { var a = "DismissVC"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetBaseInfo = function (a) { var b = "GetBaseInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetCpuInfo = function (a) { var b = "GetCpuInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetMemoryInfo = function (a) { var b = "GetMemoryInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetStorageInfo = function (a) { var b = "GetStorageInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetDisplayInfo = function (a) { var b = "GetDisplayInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GpsState = function (a) { var b = "GpsState"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.Opengps = function () { if (this.isAndroid && window.App9vCom) { var a = window.App9vCom.Opengps() } }; YDBOBJ.prototype.ContactAll = function (a) { var b = "ContactAll"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.ContactSelect = function (a) { var b = "ContactSelect"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.ContactAdd = function (g, d, e, h, b, a) { if (this.isIos) { var f = document.createElement("iframe"); f.src = "app9vcom:##//ContactAdd/?" + encodeURI(g) + "," + encodeURI(d) + "," + e + "," + h + "," + b + "," + a; f.style.width = "0"; f.style.height = "0"; document.body.appendChild(f); if (null != f) { f.parentNode.removeChild(f) } f = null; try { window.webkit.messageHandlers.ContactAdd.postMessage(encodeURI(g) + "," + encodeURI(d) + "," + e + "," + h + "," + b + "," + a) } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var i = g + d; var j = window.App9vCom.ContactAdd(i, e, h, b, a) } } }; YDBOBJ.prototype.ContactDelete = function (b, a) { var c = "ContactDelete"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.ContactUpdate = function (b, h, e, f, i, c, a) { if (this.isIos) { var g = document.createElement("iframe"); g.src = "app9vcom:##//ContactUpdate/?" + b + "," + encodeURI(h) + "," + encodeURI(e) + "," + f + "," + i + "," + c + "," + a; g.style.width = "0"; g.style.height = "0"; document.body.appendChild(g); if (null != g) { g.parentNode.removeChild(g) } g = null; try { window.webkit.messageHandlers.ContactUpdate.postMessage(b + "," + encodeURI(h) + "," + encodeURI(e) + "," + f + "," + i + "," + c + "," + a) } catch (d) { } } else { if (this.isAndroid && window.App9vCom) { var j = window.App9vCom.ContactUpdate(b, h, e, f, i, c, a) } } }; YDBOBJ.prototype.StartVoice = function (b) { var a = "StartVoice"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.VolumeVideo = function (b) { var a = "VolumeVideo"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.PauseVoice = function () { var a = "PauseVoice"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.PlayVoice = function () { var a = "PauseVoice"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.StopVoice = function () { var a = "StopVoice"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.OpenVideo = function (b) { var a = "OpenVideo"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.Wallpaper = function (b) { var a = "Wallpaper"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.NavigatorInfo = function (a) { var b = "NavigatorInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.NavigatorBaidu = function () { var a = "NavigatorBaidu"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.NavigatorGoogle = function () { var a = "NavigatorGoogle"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.NavigatorGaode = function () { var a = "NavigatorGaode"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.NavigatorBaiduPath = function (d, e, a, b) { var c = "NavigatorBaiduPath"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.NavigatorGaodePath = function (g, h, i, a, b, c) { if (this.isIos) { var e = document.createElement("iframe"); e.src = "app9vcom:##//NavigatorGaodePath/?" + g + "," + h + "," + encodeURI(i) + "," + a + "," + b + "," + encodeURI(c); e.style.width = "0"; e.style.height = "0"; document.body.appendChild(e); if (null != e) { e.parentNode.removeChild(e) } e = null; try { window.webkit.messageHandlers.NavigatorGaodePath.postMessage(g + "," + h + "," + encodeURI(i) + "," + a + "," + b + "," + encodeURI(c)) } catch (d) { } } else { if (this.isAndroid && window.App9vCom) { var f = window.App9vCom.NavigatorGaodePath(g, h, i, a, b, c) } } }; YDBOBJ.prototype.appleNavigation = function (d, e, a, b) { var c = "appleNavigation"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.BLinitManager = function (a) { var b = "BLinitManager"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLscan = function (a) { var b = "BLscan"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLgetPeripheral = function (a) { var b = "BLgetPeripheral"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLisScanning = function (a) { var b = "BLisScanning"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLstopScan = function () { var a = "BLstopScan"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.BLconnect = function (c, a) { var b = "BLconnect"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLdisconnect = function (c, a) { var b = "BLdisconnect"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLisConnected = function (c, a) { var b = "BLisConnected"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLretrievePeripheral = function (c, a) { var b = "BLretrievePeripheral"; if (this.isIos) { ApiFunHandler(b, arguments) } }; YDBOBJ.prototype.BLretrieveConnectedPeripheral = function (c, a) { var b = "BLretrieveConnectedPeripheral"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLdiscoverService = function (c, a) { var b = "BLdiscoverService"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLdiscoverCharacteristics = function (c, d, a) { var b = "BLdiscoverCharacteristics"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BLdiscoverDescriptorsForCharacteristic = function (d, e, b, a) { var c = "BLdiscoverDescriptorsForCharacteristic"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.BLsetNotify = function (d, e, b, a) { var c = "BLsetNotify"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.BLreadValueForCharacteristic = function (d, e, b, a) { var c = "BLreadValueForCharacteristic"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.BLreadValueForDescriptor = function (e, f, b, c, a) { var d = "BLreadValueForDescriptor"; ApiFunHandler(d, arguments) }; YDBOBJ.prototype.BLwriteValueForCharacteristic = function (d, e, b, f, a) { var c = "BLwriteValueForCharacteristic"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.BLwriteValueForDescriptor = function (e, f, b, c, g, a) { var d = "BLwriteValueForDescriptor"; ApiFunHandler(d, arguments) }; YDBOBJ.prototype.SwitchApp = function (a) { var b = "SwitchApp"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.iOSSystemShare = function (a, d, e) { if (this.isIos) { a = a.replace(/,/g, ","); var c = document.createElement("iframe"); c.src = "app9vcom:##//iOSSystemShare/?" + encodeURI(a) + "," + encodeURI(d) + "," + encodeURI(e); c.style.width = "0"; c.style.height = "0"; document.body.appendChild(c); if (null != c) { c.parentNode.removeChild(c) } c = null; try { window.webkit.messageHandlers.iOSSystemShare.postMessage(encodeURI(a) + "," + encodeURI(d) + "," + encodeURI(e)) } catch (b) { } } }; YDBOBJ.prototype.IsFixedBottomMenu = function (a) { if (this.isAndroid && window.App9vCom) { var b = window.App9vCom.IsFixedBottomMenu(a) } }; YDBOBJ.prototype.SetFontSize = function () { var a = "SetFontSize"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.Ring = function () { if (this.isAndroid && window.App9vCom) { var a = window.App9vCom.Ring() } }; YDBOBJ.prototype.SetBrightness = function (b) { var a = "SetBrightness"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.CiticWxPay = function (a, h, i, e, j, k, f, b) { if (this.isIos) { var d = document.createElement("iframe"); d.src = "app9vcom:##//CiticWxPay/?" + a + "[,]" + h + "[,]" + i + "[,]" + e + "[,]" + j + "[,]" + k + "[,]" + f + "[,]" + b; d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { window.webkit.messageHandlers.CiticWxPay.postMessage(a + "[,]" + h + "[,]" + i + "[,]" + e + "[,]" + j + "[,]" + k + "[,]" + f + "[,]" + b) } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var g = window.App9vCom.CiticWxPay(a, h, i, e, j, k, f, b) } } }; YDBOBJ.prototype.BeeCloudPay = function (b, a, h, i, e, g) { if (this.isIos) { var d = document.createElement("iframe"); d.src = "app9vcom:##//BeeCloudPay/?" + b + "[,]" + a + "[,]" + h + "[,]" + i + "[,]" + e + "[,]" + g; d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { window.webkit.messageHandlers.BeeCloudPay.postMessage(b + "[,]" + a + "[,]" + h + "[,]" + i + "[,]" + e + "[,]" + g) } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var f = window.App9vCom.BeeCloudPay(b, a, h, i, e, g) } } }; YDBOBJ.prototype.GetHalfScan = function (a, d, c) { var b = "GetHalfScan"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.CloseScan = function () { var a = "CloseScan"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.WftWxpayInfo = function (h, b, g, e, a) { g = g.toString(); if (a == "" || undefined == a) { a = undefined } if (this.isIos) { var d = document.createElement("iframe"); d.src = "app9vcom:##//WftWxpayInfo/?" + h + "[,]" + b + "[,]" + g + "[,]" + e + "[,]" + a; d.style.width = "0"; d.style.height = "0"; document.body.appendChild(d); if (null != d) { d.parentNode.removeChild(d) } d = null; try { window.webkit.messageHandlers.WftWxpayInfo.postMessage(h + "[,]" + b + "[,]" + g + "[,]" + e + "[,]" + a) } catch (c) { } } else { if (this.isAndroid && window.App9vCom) { var f = window.App9vCom.SetWxpayInfo(h, b, g, e, a) } } }; YDBOBJ.prototype.SetHardware = function (b) { if (this.isAndroid && window.App9vCom) { var a = window.App9vCom.SetHardware(b) } }; YDBOBJ.prototype.isScreenOrientation = function (b) { var a = "isScreenOrientation"; if (this.isIos) { ApiFunHandler(a, arguments) } }; YDBOBJ.prototype.OpenStep = function (b) { var a = "OpenStep"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetCurrentStep = function (e, d, b, a) { var c = "GetCurrentStep"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.openUCBrower = function (c, a) { var b = "openUCBrower"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetChannel = function (a) { var b = "GetChannel"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.CopyPasteboardText = function (b) { var a = "copyPasteboardText"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.StatusBarHidden = function (b) { var a = "statusBarHidden"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.IsShowLandcape = function (b) { var a = "IsShowLandcape"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.ScreenOrientation = function (b) { var a = "screenOrientation"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetAppInfo = function (a) { var b = "GetAppInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.MultiPicShare = function (d, c, a) { var b = "MultiPicShare"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.SetTitleColor = function (b) { var a = "SetTitleColor"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GetCacheSize = function (a) { var b = "GetCacheSize"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.isRightMenu = function (b) { var a = "isRightMenu"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetHeadBar = function (c, d, a, e) { var b = "SetHeadBar"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.SetMenuBar = function (e, a, f, c, d) { var b = "SetMenuBar"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.SetDragRefresh = function (c, d, b) { var a = "SetDragRefresh"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.IsShareSet = function (b) { var a = "IsShareSet"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.SetRSA2AlipayInfo = function (e, a, d, c) { var b = "SetRSA2AlipayInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenByBrowser = function (a, c) { var b = "OpenByBrowser"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenByGoogleBrowser = function (a, c) { var b = "OpenByGoogleBrowser"; if (this.isAndroid) { ApiFunHandler(b, arguments) } }; YDBOBJ.prototype.LtcyCameraInfo = function (e, f, d, g, c, a) { var b = "LtcyCameraInfo"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.StartApp = function (c, a) { var b = "startApp"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.GetElectricQuantity = function (a) { var b = "GetElectricQuantity"; if (this.isAndroid) { ApiFunHandler(b, arguments) } }; YDBOBJ.prototype.TuiLiu = function (d, c, a) { var b = "tuiliu"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.YunTuiLiu = function (d, c, a) { var b = "YunTuiLiu"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.WangsuTuiLiu = function (d, c, a) { var b = "WangsuTuiLiu"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.WangsuLaLiu = function (c, b) { var a = "WangsuLaLiu"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.MiniWX = function (b, c) { var a = "miniwx"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.AudioRecord = function (c, a) { var b = "AudioRecord"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.SingleVideoChat = function (b, c) { var a = "SingleVideoChat"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.GroupVideoChat = function (b, d, c) { var a = "GroupVideoChat"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.loginTXLive = function (c, d, b) { var a = "loginTXLive"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.newTXLiveRoom = function (c, b) { var a = "newTXLiveRoom"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.getRoomList = function (a) { var b = "getRoomList"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.enterLiveRoom = function (c, b) { var a = "enterLiveRoom"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.wirteNfcTag = function (b, a) { var c = "wirteNfcTag"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.readNfcTag = function (a) { var b = "readNfcTag"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.getNfcId = function (a) { var b = "getNfcId"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.getNfcVersion = function (a) { var b = "getNfcVersion"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.BaiduTuiLiu = function (d, c, a) { var b = "BaiduTuiLiu"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.EnableOuterApp = function (b) { var a = "EnableOuterApp"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.ScanLocalImg = function (b) { var a = "ScanLocalImg"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.ScanWebImg = function (b, c) { var a = "ScanWebImg"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMessageRegister = function (e, b, c, d) { var a = "jMessageRegister"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMessageLogin = function (d, b, c) { var a = "jMessageLogin"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMessageGoChatList = function () { var a = "jMessageGoChatList"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMessageSingleChat = function (b) { var a = "jMessageSingleChat"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMessageGetUnReadMsg = function (b) { var a = "jMessageGetUnReadMsg"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMUpdateUserNickname = function (c, b) { var a = "updateUserNickname"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.JMUpdateUserAvatar = function (c, b) { var a = "updateUserAvatar"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.YunLaLiu = function (c, b) { var a = "YunLaLiu"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.BaiduOrcWord = function (c, a) { var b = "baiduOrcWord"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.PayZjZfb = function (a, c) { var b = "PayZjZfb"; if (this.isIos) { arguments[0] = EncodeBase64(a) } ApiFunHandler(b, arguments) }; YDBOBJ.prototype.PayZjWx = function (a, b, e, d) { var c = "PayZjWx"; if (this.isIos) { arguments[1] = EncodeBase64(b) } ApiFunHandler(c, arguments) }; YDBOBJ.prototype.getTXGps = function (a) { var b = "getTXGps"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.OpenTXGPS = function (b) { var a = "OpenTXGPS"; ApiFunHandler(a, arguments) }; YDBOBJ.prototype.stopTXGps = function (a, b, d) { var c = "stopTXGps"; ApiFunHandler(c, arguments) }; YDBOBJ.prototype.ShareWxMini = function (e, a, c, f, g, d) { var b = "ShareWxMini"; ApiFunHandler(b, arguments) }; YDBOBJ.prototype.test = function (b) { var a = "test"; ApiFunHandler(a, arguments) };