From f40fad351123677ca4e84d1b1e7b4b4326110672 Mon Sep 17 00:00:00 2001 From: devil Date: Mon, 14 Sep 2020 21:12:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BEdebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/QuickNavService.php | 10 ++++++++++ sourcecode/weixin/app.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/application/service/QuickNavService.php b/application/service/QuickNavService.php index 533771098..24be84066 100755 --- a/application/service/QuickNavService.php +++ b/application/service/QuickNavService.php @@ -299,6 +299,16 @@ class QuickNavService if($v['event_type'] == 3) { $v['event_value_data'] = explode('|', $v['event_value']); + // 坐标转换 百度转火星(高德,谷歌,腾讯坐标) + if(isset($v['event_value_data'][2]) && isset($v['event_value_data'][3]) && in_array(APPLICATION_CLIENT_TYPE, config('shopxo.coordinate_transformation'))) + { + $map = \base\GeoTransUtil::BdToGcj($v['event_value_data'][2], $v['event_value_data'][3]); + if(isset($map['lng']) && isset($map['lat'])) + { + $v['event_value_data'][2] = $map['lng']; + $v['event_value_data'][] = $map['lat']; + } + } } $v['event_value'] = $v['event_value']; } else { diff --git a/sourcecode/weixin/app.js b/sourcecode/weixin/app.js index 1fbf81d11..b3bcaa0c9 100755 --- a/sourcecode/weixin/app.js +++ b/sourcecode/weixin/app.js @@ -68,7 +68,7 @@ App({ // 请求地址 request_url: "{{request_url}}", request_url: 'http://shopxo.com/', - // request_url: 'https://dev.shopxo.net/', + request_url: 'https://dev.shopxo.net/', // 基础信息 application_title: "{{application_title}}",