From 7cfea61d16da055e67487d02b17d9675a3c676a9 Mon Sep 17 00:00:00 2001 From: skywlrl Date: Thu, 7 Mar 2019 00:30:03 +0900 Subject: [PATCH] =?UTF-8?q?TW-436=20=EA=B5=AC=EA=B8=80=20=ED=82=A4=20?= =?UTF-8?q?=EB=A9=80=ED=8B=B0=EB=A1=9C=20=EC=A7=80=EC=9B=90=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20*=20config=EC=97=90=EC=84=9C=20googleApiKeys?= =?UTF-8?q?=EC=9D=84=20=EB=B0=B0=EC=97=B4=EB=A1=9C=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=ED=95=98=EA=B3=A0=20autoComplete=20=EC=8B=9C=EC=97=90=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EB=8A=94=20=EA=B5=AC=EA=B8=80=20?= =?UTF-8?q?=EC=84=9C=EB=B9=84=EC=8A=A4=EB=8A=94=20=EB=9E=9C=EB=8D=A4?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=ED=8A=B9=EC=A0=95=20=ED=82=A4=EB=A5=BC=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/www/js/service.util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/www/js/service.util.js b/client/www/js/service.util.js index 814a9b7da..719fd9f86 100644 --- a/client/www/js/service.util.js +++ b/client/www/js/service.util.js @@ -244,8 +244,9 @@ angular.module('service.util', []) }; obj.placesUrl = 'js!https://maps.googleapis.com/maps/api/js?libraries=places'; - if (clientConfig.googleapikey) { - obj.placesUrl += '&key='+clientConfig.googleapikey; + if (clientConfig.googleApiKeys) { + var index = Math.floor(Math.random() * clientConfig.googleApiKeys.length); + obj.placesUrl += '&key='+clientConfig.googleApiKeys[index]; } obj.sendMail = function($translate) {