地图debug
parent
507c9f004b
commit
f40fad3511
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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}}",
|
||||
|
|
|
|||
Loading…
Reference in New Issue