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}}",