diff --git a/src/platforms/app-plus/service/api/device/ibeacon.js b/src/platforms/app-plus/service/api/device/ibeacon.js index c8bca9d4154b60a1cbb9c1c2cf186ea2f42a4180..14532f5d54bc79cc6655da51a75319c9fd2170d7 100644 --- a/src/platforms/app-plus/service/api/device/ibeacon.js +++ b/src/platforms/app-plus/service/api/device/ibeacon.js @@ -1,5 +1,5 @@ import { - invoke, + invoke } from '../../bridge' export function onBeaconUpdate (callbackId) { diff --git a/src/platforms/app-plus/service/api/network/request.js b/src/platforms/app-plus/service/api/network/request.js index 57b141f1d5fed8b5a1521ab71c3bf2bec25b038e..e2052afc0f43324dd51ad5a7e7b5eb0ae2ae536d 100644 --- a/src/platforms/app-plus/service/api/network/request.js +++ b/src/platforms/app-plus/service/api/network/request.js @@ -17,25 +17,25 @@ const publishStateChange = res => { } const cookiesPrase = header => { - let cookiesStr = header["Set-Cookie"] - let cookiesArr = []; + let cookiesStr = header['Set-Cookie'] + let cookiesArr = [] if (!cookiesStr) { - return []; + return [] } if (cookiesStr[0] === '[' && cookiesStr[cookiesStr.length - 1] === ']') { - cookiesStr = cookiesStr.slice(1, -1); + cookiesStr = cookiesStr.slice(1, -1) } - let handleCookiesArr = cookiesStr.split(";"); - for (let i=0; i {